1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/graphics/xaos/Makefile
Max Brazhnikov 21646392b0 - Support staging
- Use new LIB_DEPENDS syntax
- Use options helpers
- Convert to USES
- Minor changes/fixes
2013-10-23 13:08:41 +00:00

64 lines
1.4 KiB
Makefile

# Created by: Joseph Koshy <koshy@india.hp.com>
# $FreeBSD$
PORTNAME= xaos
PORTVERSION= 3.5
PORTREVISION= 4
CATEGORIES= graphics math
MASTER_SITES= SF/${PORTNAME}/XaoS/${PORTVERSION}
MAINTAINER= makc@FreeBSD.org
COMMENT= Real-time fractal browser
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
USES= gmake
USE_XORG= x11 xext
GNU_CONFIGURE= yes
OPTIONS_DEFINE= GTK2 PTHREAD NLS
GTK2_DESC= GTK+ User Interface (experimental)
PTHREAD_DESC= Enable SMP support (experimental)
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15
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
INFO= xaos
PLIST_SUB+= XAOSDIR="share/XaoS"
DESKTOP_ENTRIES= "XaoS" "${COMMENT}" "" "xaos" "" false
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPTHREAD}
CONFIGURE_ARGS+= --with-pthread=yes
CONFIGURE_ENV+= LIBS="${PTHREAD_LIBS}"
CFLAGS+= ${PTHREAD_CFLAGS}
.else
CONFIGURE_ARGS+= --with-pthread=no
.endif
.if ${PORT_OPTIONS:MGTK2}
USE_GNOME= gtk20
CONFIGURE_ARGS+= --with-gtk-driver=yes --with-x11-driver=no
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
pre-configure:
${REINPLACE_CMD} -e 's,/usr\(/share/locale\),${PREFIX}\1,g' \
${WRKSRC}/configure \
${WRKSRC}/src/ui/ui.c
.include <bsd.port.mk>