From 3eca6a141649c015d4a05b88717d180a4ea056bc Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Thu, 14 Aug 2014 12:05:58 +0000 Subject: [PATCH] Stagify. --- math/dcdflib/Makefile | 20 ++++++++++--------- math/dcdflib/files/patch-Makefile | 10 ++++++++++ .../files/{patch-aa => patch-ipmpar.c} | 0 math/dcdflib/pkg-plist | 2 +- 4 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 math/dcdflib/files/patch-Makefile rename math/dcdflib/files/{patch-aa => patch-ipmpar.c} (100%) diff --git a/math/dcdflib/Makefile b/math/dcdflib/Makefile index 7028a4c6e943..95805a50f248 100644 --- a/math/dcdflib/Makefile +++ b/math/dcdflib/Makefile @@ -11,21 +11,23 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Library of C Routines for Cumulative Distribution Functions WRKSRC= ${WRKDIR}/dcdflib.c/src - USE_LDCONFIG= yes - DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/.c//} +OPTIONS_DEFINE= DOCS + +.if defined(NO_PROFILE) +PLIST_SUB+= PROFILE="@comment " +.else +PLIST_SUB+= PROFILE="" +.endif -NO_STAGE= yes post-extract: @${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile post-install: -.if !defined(NOPORTDOCS) - @${MKDIR} ${PREFIX}/share/doc/dcdflib - @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.chs ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.fdoc ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.chs ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.fdoc ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/../README ${STAGEDIR}${DOCSDIR} .include diff --git a/math/dcdflib/files/patch-Makefile b/math/dcdflib/files/patch-Makefile new file mode 100644 index 000000000000..ee928e158b6d --- /dev/null +++ b/math/dcdflib/files/patch-Makefile @@ -0,0 +1,10 @@ +--- Makefile.orig 2014-08-14 18:12:38.651021563 +0800 ++++ Makefile 2014-08-14 18:12:47.362022248 +0800 +@@ -11,6 +11,6 @@ CFLAGS?= -O2 + + beforeinstall: + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/../doc/dcdflib.h \ +- ${PREFIX}/include ++ $(DESTDIR)${PREFIX}/include + + .include diff --git a/math/dcdflib/files/patch-aa b/math/dcdflib/files/patch-ipmpar.c similarity index 100% rename from math/dcdflib/files/patch-aa rename to math/dcdflib/files/patch-ipmpar.c diff --git a/math/dcdflib/pkg-plist b/math/dcdflib/pkg-plist index 35c1d167fc55..9f0b1f52f5de 100644 --- a/math/dcdflib/pkg-plist +++ b/math/dcdflib/pkg-plist @@ -1,6 +1,6 @@ include/dcdflib.h lib/libdcdflib.a -lib/libdcdflib_p.a +%%PROFILE%%lib/libdcdflib_p.a lib/libdcdflib.so lib/libdcdflib.so.1 %%PORTDOCS%%%%DOCSDIR%%/README