summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2001-02-25 06:35:42 +0000
committerKevin Lo <kevlo@FreeBSD.org>2001-02-25 06:35:42 +0000
commit3d5a14687a20ac862c16d0caa3031592e8b8b9f6 (patch)
tree09654df05b7f5c5ecb46bf6f5882188d0c884636
parent- Update to the lastest version (diff)
- Support CFLAGS properly
- HAS_CONFIGURE -> GNU_CONFIGURE - Support NOPORTDOCS PR: 25322 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=38689
-rw-r--r--graphics/dc3play/Makefile28
-rw-r--r--graphics/dc3play/pkg-message2
-rw-r--r--graphics/dc3play/pkg-plist8
3 files changed, 20 insertions, 18 deletions
diff --git a/graphics/dc3play/Makefile b/graphics/dc3play/Makefile
index ce163cdcbd74..342bfd5d5a7b 100644
--- a/graphics/dc3play/Makefile
+++ b/graphics/dc3play/Makefile
@@ -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>
diff --git a/graphics/dc3play/pkg-message b/graphics/dc3play/pkg-message
deleted file mode 100644
index d1744eb3ec30..000000000000
--- a/graphics/dc3play/pkg-message
+++ /dev/null
@@ -1,2 +0,0 @@
-dc3play has been installed.
-Documents can be found at: /usr/local/share/doc/dc3play
diff --git a/graphics/dc3play/pkg-plist b/graphics/dc3play/pkg-plist
index 0d7fdcf04d3a..5d064e527c83 100644
--- a/graphics/dc3play/pkg-plist
+++ b/graphics/dc3play/pkg-plist
@@ -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