Skip to content

Commit f533ab8

Browse files
feat(ports): add xfe
Signed-off-by: Anhad Singh <[email protected]>
1 parent b2c3fbc commit f533ab8

File tree

8 files changed

+262
-0
lines changed

8 files changed

+262
-0
lines changed

build-support/jwm/system.jwmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!-- The root menu. -->
66
<RootMenu onroot="12">
77
<Program icon="utilities-terminal" label="Terminal">xterm</Program>
8+
<Program icon="system-file-manager" label="File Manager">xfe</Program>
89
<Menu icon="folder" label="Applications">
910
<Program icon="sound" label="Audacious">audacious</Program>
1011
<Program icon="calc" label="Calculator">xcalc</Program>

host-recipes/intltool

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name=intltool
2+
from_source=intltool
3+
revision=1
4+
hostdeps="autoconf automake libtool pkg-config"
5+
imagedeps="gcc perl-xml-parser"
6+
7+
build() {
8+
#cp -rp "${source_dir}"/. ./
9+
${source_dir}/configure \
10+
--prefix="${prefix}"
11+
12+
make -j${parallelism}
13+
}
14+
15+
package() {
16+
DESTDIR="${dest_dir}" make install
17+
18+
strip_command=strip \
19+
post_package_strip
20+
}

patches/fox/jinx-working-patch.patch

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git fox-clean/configure.ac fox-workdir/configure.ac
2+
index ce0f651..189b5e8 100644
3+
--- fox-clean/configure.ac
4+
+++ fox-workdir/configure.ac
5+
@@ -9,6 +9,8 @@ AC_INIT(fox,[fox_version],[email protected])
6+
AC_CONFIG_SRCDIR([include/fx.h])
7+
AM_INIT_AUTOMAKE([foreign])
8+
9+
+PKG_PROG_PKG_CONFIG
10+
+
11+
# Set version
12+
FOX_MAJOR_VERSION=fox_major
13+
FOX_MINOR_VERSION=fox_minor
14+
@@ -190,8 +192,8 @@ AC_MSG_CHECKING(for Xft support)
15+
AC_ARG_WITH(xft,[ --with-xft enable Xft support])
16+
AC_MSG_RESULT([$with_xft])
17+
if test "x$with_xft" != "xno"; then
18+
-XFTCFLAGS="-I/usr/include/freetype2"
19+
-XFTLIBS="-lfreetype -lfontconfig -lXft"
20+
+XFTCFLAGS="$($PKG_CONFIG --cflags freetype2 fontconfig xft)"
21+
+XFTLIBS="$($PKG_CONFIG --libs freetype2 fontconfig xft)"
22+
saved_cppflags="${CXXFLAGS}"
23+
CXXFLAGS="${CXXFLAGS} -DHAVE_XFT_H=1 $XFTCFLAGS"
24+
X_BASE_LIBS="${X_BASE_LIBS} $XFTLIBS"
25+

patches/xfe/jinx-working-patch.patch

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
diff --git xfe-clean/configure.ac xfe-workdir/configure.ac
2+
index 0fa6dc9..ecaa037 100644
3+
--- xfe-clean/configure.ac
4+
+++ xfe-workdir/configure.ac
5+
@@ -69,9 +69,9 @@ AC_FUNC_GETGROUPS
6+
AC_FUNC_GETMNTENT
7+
AC_FUNC_LSTAT
8+
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
9+
-AC_FUNC_MALLOC
10+
+#AC_FUNC_MALLOC
11+
AC_FUNC_MKTIME
12+
-AC_FUNC_REALLOC
13+
+#AC_FUNC_REALLOC
14+
AC_FUNC_STAT
15+
AC_FUNC_UTIME_NULL
16+
AC_CHECK_FUNCS([endgrent endpwent gethostname getmntent gettimeofday lchown memset mkdir mkfifo putenv rmdir setlocale sqrt strchr strdup strerror strstr strtol strtoul strtoull utime])
17+
@@ -87,25 +87,19 @@ AC_CHECK_LIB(FOX-1.6,fxfindfox,,AC_MSG_ERROR("libFOX-1.6 not found"))
18+
19+
# Check for FOX 1.6 header files
20+
AC_LANG([C++])
21+
-AC_CHECK_HEADER(fox-1.6/fx.h,,AC_MSG_ERROR("fox-1.6/fx.h not found"))
22+
+#AC_CHECK_HEADER(fox-1.6/fx.h,,AC_MSG_ERROR("fox-1.6/fx.h not found"))
23+
24+
25+
-# Check if fox-config exists
26+
-AC_CHECK_PROGS(FOX_CONFIG,fox-config-1.6 fox-1.6-config fox-config)
27+
-if test no"$FOX_CONFIG" = no ; then
28+
- AC_MSG_ERROR("fox-config not found")
29+
-fi
30+
-
31+
32+
# Include flags for the FOX library
33+
-FOXCFLAGS=`$FOX_CONFIG --cflags`
34+
+FOXCFLAGS=`$PKG_CONFIG --cflags fox`
35+
CXXFLAGS="${CXXFLAGS} $FOXCFLAGS"
36+
37+
38+
# Check if FOX was compiled with xft support
39+
-TEST_XFT=`$FOX_CONFIG --libs | grep Xft`
40+
+TEST_XFT=yes
41+
if test "x$TEST_XFT" != "x" ; then
42+
-
43+
+
44+
echo "checking whether FOX was compiled with Xft support... yes"
45+
46+
# Check for FreeType2
47+
@@ -135,7 +129,7 @@ if test "x$TEST_XFT" != "x" ; then
48+
CXXFLAGS="$CXXFLAGS -DHAVE_XFT_H"
49+
], AC_MSG_ERROR("Xft not found"))
50+
fi
51+
- AC_CHECK_HEADER(X11/Xft/Xft.h,,AC_MSG_ERROR("Xft.h not found"))
52+
+ #AC_CHECK_HEADER(X11/Xft/Xft.h,,AC_MSG_ERROR("Xft.h not found"))
53+
54+
else
55+
echo "checking whether FOX was compiled with Xft support... no"
56+
@@ -149,28 +143,28 @@ else
57+
echo " sudo make install"
58+
echo "============================================================================================="
59+
echo ""
60+
- AC_MSG_ERROR("missing Xft support in FOX")
61+
+ AC_MSG_ERROR("missing Xft support in FOX")
62+
fi
63+
64+
65+
# Check for Xlib headers
66+
-AC_CHECK_HEADER(X11/Xlib.h,,AC_MSG_ERROR("Xlib.h not found"))
67+
+#AC_CHECK_HEADER(X11/Xlib.h,,AC_MSG_ERROR("Xlib.h not found"))
68+
69+
# Check for XRandR support
70+
AC_MSG_CHECKING(for xrandr extension)
71+
AC_ARG_WITH(xrandr,[ --with-xrandr compile with XRandR support])
72+
AC_MSG_RESULT([$with_xrandr])
73+
-if test "x$with_xrandr" != "xno"; then
74+
-AC_CHECK_HEADERS(X11/extensions/Xrandr.h,CXXFLAGS="${CXXFLAGS} -DHAVE_XRANDR_H=1"; LIBS="${LIBS} -lXrandr")
75+
-fi
76+
+#if test "x$with_xrandr" != "xno"; then
77+
+#AC_CHECK_HEADERS(X11/extensions/Xrandr.h,CXXFLAGS="${CXXFLAGS} -DHAVE_XRANDR_H=1"; LIBS="${LIBS} -lXrandr")
78+
+#fi
79+
80+
# Check for libPNG
81+
AC_CHECK_LIB(png, png_read_info,,AC_MSG_ERROR("libPNG not found"))
82+
-AC_CHECK_HEADER(png.h,,AC_MSG_ERROR("png.h not found"))
83+
+#AC_CHECK_HEADER(png.h,,AC_MSG_ERROR("png.h not found"))
84+
85+
# Check for fontconfig
86+
AC_CHECK_LIB(fontconfig, FcInit,, AC_MSG_ERROR("fontconfig not found"))
87+
-AC_CHECK_HEADER(fontconfig/fontconfig.h,,AC_MSG_ERROR("fontconfig.h not found"))
88+
+#AC_CHECK_HEADER(fontconfig/fontconfig.h,,AC_MSG_ERROR("fontconfig.h not found"))
89+
90+
# Check for startup notification support
91+
AC_MSG_CHECKING(for startup notification)
92+
diff --git xfe-clean/src/ArchInputDialog.cpp xfe-workdir/src/ArchInputDialog.cpp
93+
index f0314bb..4b6e170 100644
94+
--- xfe-clean/src/ArchInputDialog.cpp
95+
+++ xfe-workdir/src/ArchInputDialog.cpp
96+
@@ -1,5 +1,6 @@
97+
// Input dialog for the add to archive command
98+
99+
+#include <stdlib.h>
100+
#include "config.h"
101+
#include "i18n.h"
102+
103+
diff --git xfe-clean/src/Bookmarks.cpp xfe-workdir/src/Bookmarks.cpp
104+
index 241ef32..113c503 100644
105+
--- xfe-clean/src/Bookmarks.cpp
106+
+++ xfe-workdir/src/Bookmarks.cpp
107+
@@ -1,5 +1,6 @@
108+
// Bookmarks list. Taken from the FOX library (FXRecentFiles) and slightly modified.
109+
110+
+#include <stdlib.h>
111+
#include "config.h"
112+
#include "i18n.h"
113+
114+
diff --git xfe-clean/src/BrowseInputDialog.cpp xfe-workdir/src/BrowseInputDialog.cpp
115+
index 4c64e68..ff0c1ad 100644
116+
--- xfe-clean/src/BrowseInputDialog.cpp
117+
+++ xfe-workdir/src/BrowseInputDialog.cpp
118+
@@ -1,5 +1,6 @@
119+
// Input dialog with file browse icon
120+
121+
+#include <stdlib.h>
122+
#include "config.h"
123+
#include "i18n.h"
124+

recipes/fox

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name=fox
2+
version=1.6.57
3+
revision=1
4+
tarball_url="http://fox-toolkit.org/ftp/fox-${version}.tar.gz"
5+
tarball_blake2b="3efbc6188225f9444fbd347359e8b4041a08fe654acb99c48e4966e501a2f72a44863f2e9b60ae810a259951f89cfc27b9a8b6341e029627066712e0dbf20e40"
6+
source_hostdeps="automake autoconf libtool pkg-config"
7+
hostdeps="gcc autoconf automake libtool pkg-config"
8+
deps="core-libs libx11 libxft libxext freetype2 glu"
9+
10+
regenerate() {
11+
autotools_recursive_regen
12+
}
13+
14+
build() {
15+
cp -rp "${source_dir}"/. ./
16+
17+
configure_script_path=./configure \
18+
autotools_configure
19+
20+
make -j${parallelism}
21+
}
22+
23+
package() {
24+
DESTDIR="${dest_dir}" make install
25+
26+
post_package_strip
27+
}

recipes/xcb-util

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name=xcb-util
2+
version=0.4.1
3+
revision=1
4+
tarball_url="https://xcb.freedesktop.org/dist/xcb-util-${version}.tar.xz"
5+
tarball_blake2b="bcde73073590c56771af6233f1a04a692197a756ef9ce70b6e0bd3625ad6d61f99f4c671dcfae39c8dd66e3225f40f7e9b42dd115ffe83a561e48a9808bf00e3"
6+
source_hostdeps="automake autoconf libtool pkg-config"
7+
source_deps="xorg-util-macros"
8+
imagedeps="python"
9+
hostdeps="gcc autoconf automake libtool pkg-config"
10+
deps="core-libs xorg-proto libxcb"
11+
12+
regenerate() {
13+
autotools_recursive_regen
14+
}
15+
16+
build() {
17+
autotools_configure
18+
19+
make -j${parallelism}
20+
}
21+
22+
package() {
23+
DESTDIR="${dest_dir}" make install
24+
25+
post_package_strip
26+
}

recipes/xfe

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name=xfe
2+
version=1.46
3+
revision=1
4+
tarball_url="https://downloads.sourceforge.net/sourceforge/xfe/xfe-${version}.tar.xz"
5+
tarball_blake2b="d7b85e5280d1d9d6db3737f8ac14f4248ae4e99b52d843b51468299bdf71581003b21d0fb2be9949c7189481ed5f3fe88bbd146d2185c17dea3a4785edb876b7"
6+
source_hostdeps="autoconf automake libtool pkg-config intltool"
7+
source_deps="xorg-util-macros gettext"
8+
imagedeps="perl-xml-parser"
9+
hostdeps="gcc autoconf automake libtool pkg-config intltool"
10+
deps="core-libs fox libx11 libxft libxcb xcb-util"
11+
12+
regenerate() {
13+
autotools_recursive_regen
14+
}
15+
16+
build() {
17+
cp -rp "${source_dir}"/. ./
18+
19+
configure_script_path=./configure \
20+
autotools_configure \
21+
--with-x
22+
23+
make -j${parallelism}
24+
}
25+
26+
package() {
27+
make DESTDIR=${dest_dir} install
28+
29+
post_package_strip
30+
}

source-recipes/intltool

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=intltool
2+
version=0.51.0
3+
tarball_url="https://launchpad.net/intltool/trunk/${version}/+download/intltool-${version}.tar.gz"
4+
tarball_blake2b="98fe40e4d669fdf65a777152ddee0a9656412b9cf5d1e682d1b4b7bd666f3e5aa623a50481b6df47e16a935550836c66c666229b0bb7ef143f7cde6893b97a69"
5+
hostdeps="autoconf automake libtool pkg-config"
6+
7+
regenerate() {
8+
autotools_recursive_regen
9+
}

0 commit comments

Comments
 (0)