summaryrefslogtreecommitdiff
path: root/misc/magicpoint/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2013-11-08 18:47:55 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2013-11-08 18:47:55 +0000
commita3fe739b2c35ea387c88b7b3707f5c0bd50cac00 (patch)
tree592777624b13b2358675f1cc9f6b98d745400dba /misc/magicpoint/Makefile
parent- Fix distinfo (diff)
- use prefixed DEPENDS and CONFIGURE
- fix build warnings
Notes
Notes: svn path=/head/; revision=333257
Diffstat (limited to 'misc/magicpoint/Makefile')
-rw-r--r--misc/magicpoint/Makefile74
1 files changed, 32 insertions, 42 deletions
diff --git a/misc/magicpoint/Makefile b/misc/magicpoint/Makefile
index 0b0e2efc424d..4b6217764aba 100644
--- a/misc/magicpoint/Makefile
+++ b/misc/magicpoint/Makefile
@@ -15,17 +15,15 @@ LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png \
RUN_DEPENDS+= pnmscale:${PORTSDIR}/graphics/netpbm
MAKE_JOBS_UNSAFE= yes
-NO_STAGE= yes
USES= imake:env pkgconfig
USE_XORG= x11 xext xmu xt sm ice xi xtst
WANT_GNOME= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-vflib --enable-locale
+CPPFLAGS+= -I..
LATE_INSTALL_ARGS= install.man
-MAN1= mgp.1 mgp2ps.1 mgpembed.1 mgpnet.1 xwintoppm.1 xmindpath.1
-
PORTDOCS= ${DOCS} sample emacs-lisp scripts
DOCS= COPYRIGHT COPYRIGHT.jp FAQ README README.fonts \
README.fonts.jp README.lang RELNOTES SYNTAX TODO.jp \
@@ -46,38 +44,24 @@ OPTIONS_DEFINE=FREETYPE XFT GIF IMLIB
OPTIONS_DEFAULT=FREETYPE XFT
NO_OPTIONS_SORT=yes
-.include <bsd.port.options.mk>
+FREETYPE_CONFIGURE_ENABLE= freetype
+XFT_USES= iconv
+XFT_LIB_DEPENDS= libttf.so:${PORTSDIR}/print/freetype
+XFT_CONFIGURE_ENABLE= xft2
+XFT_CONFIGURE_ON= --enable-freetype-charset16
+GIF_CONFIGURE_ENABLE= gif
+GIF_LIB_DEPENDS= libgif.so:${PORTSDIR}/graphics/giflib
+GIF_CPPFLAGS= -I${LOCALBASE}/include
+IMLIB_CONFIGURE_ENABLE= imlib
-.if ${PORT_OPTIONS:MFREETYPE}
-# Only freetype 1.x is supported
-LIB_DEPENDS+= ttf:${PORTSDIR}/print/freetype
-CONFIGURE_ARGS+= --enable-freetype \
- --enable-freetype-charset16
-.else
-CONFIGURE_ARGS+= --disable-freetype
-.endif
+.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MXFT}
-USES+= iconv
USE_XORG+= xft
-CONFIGURE_ARGS+= --enable-xft2
-.else
-CONFIGURE_ARGS+= --disable-xft2
-.endif
-
-.if ${PORT_OPTIONS:MGIF}
-LIB_DEPENDS+= gif:${PORTSDIR}/graphics/giflib
-CONFIGURE_ARGS+= --enable-gif
-CFLAGS+= -I${LOCALBASE}/include
-.else
-CONFIGURE_ARGS+= --disable-gif
.endif
.if ${PORT_OPTIONS:MIMLIB}
-USE_GNOME= imlib
-CONFIGURE_ARGS+= --enable-imlib
-.else
-CONFIGURE_ARGS+= --disable-imlib
+USE_GNOME+= imlib
.endif
post-patch:
@@ -86,33 +70,39 @@ post-patch:
${WRKSRC}/configure
post-configure:
- (cd ${CONFIGURE_WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF} ${XMKMF_ARGS})
+ cd ${CONFIGURE_WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} ${XMKMF} ${XMKMF_ARGS}
cd ${WRKSRC}/contrib/xmindpath && \
${SH} ${CONFIGURE_SCRIPT} --prefix=${PREFIX}
post-build:
cd ${WRKSRC}/contrib/xmindpath && \
- ${MAKE}
+ ${MAKE_ENV} ${MAKE} ${MAKE_ARGS}
post-install:
- cd ${WRKSRC}/contrib/xmindpath && \
- ${MAKE} install
+ ${INSTALL_MAN} ${WRKSRC}/contrib/xmindpath/xmindpath.1 \
+ ${STAGEDIR}${MANPREFIX}/man/man1/
+ ${INSTALL} ${WRKSRC}/contrib/xmindpath/xmindpath \
+ ${STAGEDIR}${PREFIX}/bin/
.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && \
- ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
- ${MKDIR} ${DOCSDIR}/sample
+ ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/sample
cd ${WRKSRC}/sample && \
- ${INSTALL_DATA} ${SAMPLES} ${DOCSDIR}/sample/
- ${MKDIR} ${DOCSDIR}/emacs-lisp
+ ${INSTALL_DATA} ${SAMPLES} ${STAGEDIR}${DOCSDIR}/sample/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/emacs-lisp
cd ${WRKSRC}/contrib && \
- ${INSTALL_DATA} ${EMACS_LISPS} ${DOCSDIR}/emacs-lisp/
- ${MKDIR} ${DOCSDIR}/emacs-lisp/mgp-el
+ ${INSTALL_DATA} ${EMACS_LISPS} \
+ ${STAGEDIR}${DOCSDIR}/emacs-lisp/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/emacs-lisp/mgp-el
cd ${WRKSRC}/contrib/mgp-el && \
- ${INSTALL_DATA} ${EMACS_LISPS_MGP} ${DOCSDIR}/emacs-lisp/mgp-el
- ${MKDIR} ${DOCSDIR}/scripts
+ ${INSTALL_DATA} ${EMACS_LISPS_MGP} \
+ ${STAGEDIR}${DOCSDIR}/emacs-lisp/mgp-el/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/scripts
cd ${WRKSRC}/contrib && \
- ${INSTALL_SCRIPT} ${SAMPLE_SCRIPTS} ${DOCSDIR}/scripts/
+ ${INSTALL_SCRIPT} ${SAMPLE_SCRIPTS} \
+ ${STAGEDIR}${DOCSDIR}/scripts/
.endif
.include <bsd.port.mk>