From a8ac537976db561849fe7bd08b4c5e80074704c9 Mon Sep 17 00:00:00 2001 From: Danilo Egea Gondolfo Date: Sat, 15 Feb 2014 15:00:33 +0000 Subject: [PATCH] - Convert LIB_DEPENDS to new syntax - Add LICENSE - Add stage support - Add DOCS option --- math/surf/Makefile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/math/surf/Makefile b/math/surf/Makefile index 1e04f5cce724..1f547525806c 100644 --- a/math/surf/Makefile +++ b/math/surf/Makefile @@ -10,9 +10,11 @@ MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Visualize some real algebraic geometry -LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \ - tiff.4:${PORTSDIR}/graphics/tiff \ - gmp.10:${PORTSDIR}/math/gmp +LICENSE= GPLv2 + +LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ + libtiff.so:${PORTSDIR}/graphics/tiff \ + libgmp.so:${PORTSDIR}/math/gmp USE_XORG= x11 xmu USE_GNOME= gtk12 @@ -23,12 +25,13 @@ CONFIGURE_ARGS= --disable-cups --datadir=${PREFIX}/share CONFLICTS= surf-0* # www/surf -MAN1= ${PORTNAME}.1 +OPTIONS_DEFINE= DOCS + PORTDOCS= manual.sgml -PLIST_FILES= bin/${PORTNAME} %%DATADIR%%/${PORTNAME}.xpm +PLIST_FILES= bin/${PORTNAME} %%DATADIR%%/${PORTNAME}.xpm \ + man/man1/${PORTNAME}.1.gz PLIST_DIRS= %%DATADIR%% -NO_STAGE= yes post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e \ @@ -36,9 +39,7 @@ post-patch: s|@CUPS_FALSE@||g' post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${STAGEDIR}${DOCSDIR} .include