Stagify.
This commit is contained in:
parent
97fd2f3489
commit
3eca6a1416
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364843
4 changed files with 22 additions and 10 deletions
|
@ -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 <bsd.port.mk>
|
||||
|
|
10
math/dcdflib/files/patch-Makefile
Normal file
10
math/dcdflib/files/patch-Makefile
Normal file
|
@ -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 <bsd.lib.mk>
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue