- Support CFLAGS properly

- HAS_CONFIGURE -> GNU_CONFIGURE
- Support NOPORTDOCS

PR: 25322
Submitted by: Ports Fury
This commit is contained in:
Kevin Lo 2001-02-25 06:35:42 +00:00
parent 3387f20d26
commit 3d5a14687a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38689
3 changed files with 20 additions and 18 deletions

View File

@ -7,25 +7,29 @@
PORTNAME= dc3play
PORTVERSION= 19991202
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.itojun.org/pub/digi-cam/DC-3/unix/ \
MASTER_SITES= ftp://ftp.itojun.org/pub/digi-cam/DC-3/unix/ \
ftp://ftp.digipri.co.jp/pub/free-software/Ricoh/DC-3/unix/
MAINTAINER= ports@freebsd.org
WRKSRC= ${WRKDIR}/dc3play/build
HAS_CONFIGURE= yes
MAINTAINER= ports@FreeBSD.org
RESTRICTED= "Beta test period, redistribution prohibited"
DOC= README.english README.japanese PROTOCOL
WRKSRC= ${WRKDIR}/${PORTNAME}/build
GNU_CONFIGURE= yes
CONFIGURE_ENV= OPTFLAG=""
post-patch:
@${PERL} -pi -e "s|<sys/dir.h>|<dirent.h>|g" ${WRKSRC}/../src/*.c
post-install:
${MKDIR} ${PREFIX}/share/doc/dc3play
for i in ${DOC}; do \
${INSTALL_DATA} ${WRKSRC}/../$$i \
${PREFIX}/share/doc/dc3play; \
done
${SED} -e 's@\/usr\/local@${PREFIX}@' < ${PKGMESSAGE}
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/dc3play
.for file in PROTOCOL README.english README.japanese
${INSTALL_DATA} ${WRKSRC}/../${file} ${PREFIX}/share/doc/dc3play
.endfor
.endif
.include <bsd.port.mk>

View File

@ -1,2 +0,0 @@
dc3play has been installed.
Documents can be found at: /usr/local/share/doc/dc3play

View File

@ -1,5 +1,5 @@
bin/dc3play
share/doc/dc3play/README.english
share/doc/dc3play/README.japanese
share/doc/dc3play/PROTOCOL
@dirrm share/doc/dc3play
%%PORTDOCS%%share/doc/dc3play/PROTOCOL
%%PORTDOCS%%share/doc/dc3play/README.english
%%PORTDOCS%%share/doc/dc3play/README.japanese
%%PORTDOCS%%@dirrm share/doc/dc3play