ports/73457: [ maintainer ] use OPTIONS
Roman Bogorodskiy
bogorodskiy at inbox.ru
Wed Nov 3 15:30:27 UTC 2004
>Number: 73457
>Category: ports
>Synopsis: [ maintainer ] use OPTIONS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 03 15:30:26 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Roman Bogorodskiy
>Release: FreeBSD 5.3-BETA7 i386
>Organization:
>Environment:
System: FreeBSD lame.novel.ru 5.3-BETA7 FreeBSD 5.3-BETA7 #12: Sat Oct 16 20:09:15 MSD 2004 root at lame.novel.ru:/usr/obj/usr/home/novel/current/src/sys/NOVEL i386
>Description:
- use OPTIONS
>How-To-Repeat:
>Fix:
--- xplanet.orig/Makefile Wed Nov 3 15:50:00 2004
+++ xplanet/Makefile Wed Nov 3 18:16:40 2004
@@ -16,56 +16,68 @@
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
+USE_GNOME=
CONFIGURE_ARGS= --with-map-extension=jpg
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm"
PLIST_FILES= bin/xplanet
+
+OPTIONS= FREETYPE "Enable Freetype support" on \
+ PANGO "Enable PANGO support" on \
+ GIF "Enable GIF support" on \
+ JPEG "Enable JPEG support" on \
+ PNG "Enable PNG support" on \
+ PNM "Enable PNM support" on \
+ TIFF "Enable TIFF support" on
+
MAN1= xplanet.1
-.if !defined(WITHOUT_FREETYPE)
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_FREETYPE)
CONFIGURE_ARGS+= --with-freetype
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
.else
CONFIGURE_ARGS+= --without-freetype
.endif
-.if !defined(WITHOUT_PANGO)
+.if defined(WITH_PANGO)
CONFIGURE_ARGS+= --with-pango
USE_GNOME+= pango
.else
CONFIGURE_ARGS+= --without-pango
.endif
-.if !defined(WITHOUT_GIF)
+.if defined(WITH_GIF)
CONFIGURE_ARGS+= --with-gif
LIB_DEPENDS+= ungif.5:${PORTSDIR}/graphics/libungif
.else
CONFIGURE_ARGS+= --without-gif
.endif
-.if !defined(WITHOUT_JPEG)
+.if defined(WITH_JPEG)
CONFIGURE_ARGS+= --with-jpeg
LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg
.else
CONFIGURE_ARGS+= --without-jpeg
.endif
-.if !defined(WITHOUT_PNG)
+.if defined(WITH_PNG)
CONFIGURE_ARGS+= --with-png
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
.else
CONFIGURE_ARGS+= --without-png
.endif
-.if !defined(WITHOUT_PNM)
+.if defined(WITH_PNM)
CONFIGURE_ARGS+= --with-pnm
LIB_DEPENDS+= netpbm.1:${PORTSDIR}/graphics/netpbm
.else
CONFIGURE_ARGS+= --without-pnm
.endif
-.if !defined(WITHOUT_TIFF)
+.if defined(WITH_TIFF)
CONFIGURE_ARGS+= --with-tiff
LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff
.else
@@ -82,4 +94,4 @@
@${FIND} ${DATADIR} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/, at dirrm ,' >> ${TMPPLIST}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list