diff options
author | dinoex <dinoex@FreeBSD.org> | 2012-09-17 01:01:24 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2012-09-17 01:01:24 +0800 |
commit | 5751bad15513da256471cf918cc07a119e04f689 (patch) | |
tree | 7e279a950994dae7acafd948317e11c8fcb23101 /misc/magicpoint | |
parent | 9004928c7bdbe24df3c298ed3087d13c86cce97c (diff) | |
download | freebsd-ports-gnome-5751bad15513da256471cf918cc07a119e04f689.tar.gz freebsd-ports-gnome-5751bad15513da256471cf918cc07a119e04f689.tar.zst freebsd-ports-gnome-5751bad15513da256471cf918cc07a119e04f689.zip |
- use OPTIONS_DEFINE
Diffstat (limited to 'misc/magicpoint')
-rw-r--r-- | misc/magicpoint/Makefile | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/misc/magicpoint/Makefile b/misc/magicpoint/Makefile index 289f929a51d3..f7a680efbb98 100644 --- a/misc/magicpoint/Makefile +++ b/misc/magicpoint/Makefile @@ -24,11 +24,6 @@ WANT_GNOME= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-vflib --enable-locale -OPTIONS+= FREETYPE "With FreeType support" on \ - XFT "With Xft2 support" on \ - GIF "With gif image support" off \ - IMLIB "With Imlib exclusive image processing" off - MAN1= mgp.1 mgp2ps.1 mgpembed.1 mgpnet.1 xwintoppm.1 xmindpath.1 PORTDOCS= ${DOCS} sample emacs-lisp scripts @@ -46,9 +41,14 @@ EMACS_LISPS= mgp-mode.el EMACS_LISPS_MGP=COPYING README mgp.el mgp.sty sample.tex SAMPLE_SCRIPTS= eqn2eps.sh tex2eps.sh mgp2html.pl mgp2latex.pl -.include <bsd.port.pre.mk> -.if defined(WITH_FREETYPE) +OPTIONS_DEFINE=FREETYPE XFT GIF IMLIB +OPTIONS_DEFAULT=FREETYPE XFT +NO_OPTIONS_SORT=yes + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MFREETYPE} # Only freetype 1.x is supported USE_FREETYPE= yes CONFIGURE_ARGS+= --enable-freetype \ @@ -57,14 +57,14 @@ CONFIGURE_ARGS+= --enable-freetype \ CONFIGURE_ARGS+= --disable-freetype .endif -.if defined(WITH_XFT) +.if ${PORT_OPTIONS:MXFT} USE_XORG+= xft CONFIGURE_ARGS+= --enable-xft2 .else CONFIGURE_ARGS+= --disable-xft2 .endif -.if defined(WITH_GIF) +.if ${PORT_OPTIONS:MGIF} LIB_DEPENDS+= gif.5:${PORTSDIR}/graphics/giflib CONFIGURE_ARGS+= --enable-gif CFLAGS+= -I${LOCALBASE}/include @@ -72,7 +72,7 @@ CFLAGS+= -I${LOCALBASE}/include CONFIGURE_ARGS+= --disable-gif .endif -.if defined(WITH_IMLIB) +.if ${PORT_OPTIONS:MIMLIB} USE_GNOME= imlib CONFIGURE_ARGS+= --enable-imlib .else @@ -113,4 +113,4 @@ post-install: ${INSTALL_SCRIPT} ${SAMPLE_SCRIPTS} ${DOCSDIR}/scripts/ .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |