summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2010-05-17 17:23:12 +0000
committerPav Lucistnik <pav@FreeBSD.org>2010-05-17 17:23:12 +0000
commit411633c63505704c96c6b49e974e3acd3745c5d2 (patch)
tree6d9e857ee67938b6ede47d2e17bbd463da37302c
parentFix build on -CURRENT (diff)
- Fix build on 6.X
- Install docs PR: ports/146667 Submitted by: Andras Horvath <han@log69.com> (maintainer)
-rw-r--r--graphics/aaphoto/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/graphics/aaphoto/Makefile b/graphics/aaphoto/Makefile
index f5bc00962070..6244e9dc190e 100644
--- a/graphics/aaphoto/Makefile
+++ b/graphics/aaphoto/Makefile
@@ -7,6 +7,7 @@
PORTNAME= aaphoto
PORTVERSION= 0.37
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://log69.com/downloads/
DISTNAME= ${PORTNAME}_sources_v${PORTVERSION}
@@ -25,10 +26,26 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_FILES= bin/aaphoto
+PORTDOCS= AUTHORS ChangeLog COPYING COPYRIGHT INSTALL LICENSE \
+ NEWS README TODO
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 700000
+CFLAGS+= -fno-openmp -Wno-unknown-pragmas -U__OPENMP__
+.endif
do-install:
.for FILE in aaphoto
${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${PREFIX}/bin
.endfor
-.include <bsd.port.mk>
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>