aboutsummaryrefslogtreecommitdiff
path: root/graphics/xaos/Makefile
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2010-01-07 21:45:10 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2010-01-07 21:45:10 +0000
commit794a0f62810e2dddb49a13b8be3e9bafdbcd10fc (patch)
treed41425aced819db2a50863d139dcdab712452736 /graphics/xaos/Makefile
parente38dc7c0ac0b322f7e09cc5b640dfd22237cc109 (diff)
downloadports-794a0f62810e2dddb49a13b8be3e9bafdbcd10fc.tar.gz
ports-794a0f62810e2dddb49a13b8be3e9bafdbcd10fc.zip
Notes
Diffstat (limited to 'graphics/xaos/Makefile')
-rw-r--r--graphics/xaos/Makefile30
1 files changed, 19 insertions, 11 deletions
diff --git a/graphics/xaos/Makefile b/graphics/xaos/Makefile
index 13c37b3a3e09..a5f39b50f0e3 100644
--- a/graphics/xaos/Makefile
+++ b/graphics/xaos/Makefile
@@ -6,27 +6,25 @@
#
PORTNAME= xaos
-PORTVERSION= 3.4
-PORTREVISION= 1
+PORTVERSION= 3.5
CATEGORIES= graphics math
MASTER_SITES= SF/${PORTNAME}/XaoS/${PORTVERSION}
-DISTNAME= XaoS-${PORTVERSION}
MAINTAINER= makc@FreeBSD.org
COMMENT= A real-time fractal browser for X11 and ASCII terminals
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
-USE_XORG= x11 xau xdmcp xext
+USE_XORG= x11 xext
GNU_CONFIGURE= yes
USE_GMAKE= yes
-USE_AUTOTOOLS= autoconf:262
OPTIONS= PTHREAD "Enable SMP support (experimental)" off \
+ GTK2 "GTK+ User Interface (experimental)" off \
NLS "Native Language Support" on
-CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
- LDFLAGS="-L${PREFIX}/lib -L${LOCALBASE}/lib"
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-aa-driver=no --with-dga-driver=no \
--with-ggi-driver=no --with-svga-driver=no \
--with-sffe=no
@@ -36,9 +34,9 @@ INFO= xaos
PLIST_SUB+= XAOSDIR="share/XaoS"
-DESKTOP_ENTRIES="XaoS" "Fractal zoomer" "" "xaos" "" false
+DESKTOP_ENTRIES= "XaoS" "Fractal zoomer" "" "xaos" "" false
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if defined(WITH_PTHREAD)
CONFIGURE_ARGS+= --with-pthread=yes
@@ -48,12 +46,22 @@ CONFIGURE_ENV+= LIBS="${PTHREAD_LIBS}" \
CONFIGURE_ARGS+= --with-pthread=no
.endif
+.if defined(WITH_GTK2)
+USE_GNOME= gtk20
+CONFIGURE_ARGS+= --with-gtk-driver=yes --with-x11-driver=no
+.endif
+
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
-CONFIGURE_ARGS+=--disable-nls
+CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
-.include <bsd.port.post.mk>
+pre-configure:
+ ${REINPLACE_CMD} -e 's,/usr\(/share/locale\),${PREFIX}\1,g' \
+ ${WRKSRC}/configure \
+ ${WRKSRC}/src/ui/ui.c
+
+.include <bsd.port.mk>