1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

Allow staging as a regular user

This commit is contained in:
Antoine Brodin 2014-09-13 12:39:14 +00:00
parent f4a4216bd9
commit 63ec46e2c3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368089
3 changed files with 4 additions and 15 deletions

View File

@ -11,7 +11,9 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Library of C Routines for Cumulative Distribution Functions
WRKSRC= ${WRKDIR}/dcdflib.c/src
USES= uidfix
USE_LDCONFIG= yes
MAKEFILE= ${FILESDIR}/Makefile.lib
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/.c//}
OPTIONS_DEFINE= DOCS
@ -21,9 +23,6 @@ PLIST_SUB+= PROFILE="@comment "
PLIST_SUB+= PROFILE=""
.endif
post-extract:
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.chs ${STAGEDIR}${DOCSDIR}

View File

@ -10,7 +10,7 @@ SRCS= dcdflib.c ipmpar.c
CFLAGS?= -O2
beforeinstall:
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/../doc/dcdflib.h \
${PREFIX}/include
${BSD_INSTALL_DATA} ${.CURDIR}/../doc/dcdflib.h \
${DESTDIR}${PREFIX}/include
.include <bsd.lib.mk>

View File

@ -1,10 +0,0 @@
--- 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>