summaryrefslogtreecommitdiff
path: root/graphics/ocaml-images/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-06-11 08:26:26 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-06-11 08:26:26 +0000
commit9fb143e5976d9cf14b73a3380fafc3782d859a1f (patch)
treefb621c99f8d02d617280377bbf281ad3bdb23f9b /graphics/ocaml-images/Makefile
parentPrune an empty sub-directory. (diff)
- Fix LDFLAGS
- Install documentation PR: ports/93270 Submitted by: Michael Winking <mwfp@foldl.net> <mwfp@alfa12.isp-service.biz> Approved by: maintainer timeout (4 months)
Notes
Notes: svn path=/head/; revision=165072
Diffstat (limited to 'graphics/ocaml-images/Makefile')
-rw-r--r--graphics/ocaml-images/Makefile23
1 files changed, 21 insertions, 2 deletions
diff --git a/graphics/ocaml-images/Makefile b/graphics/ocaml-images/Makefile
index c706a02f44a5..efe5e4924f2f 100644
--- a/graphics/ocaml-images/Makefile
+++ b/graphics/ocaml-images/Makefile
@@ -8,7 +8,7 @@
PORTNAME= images
PORTVERSION= 2.2
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.inria.fr/INRIA/caml-light/bazar-ocaml/
@@ -37,12 +37,20 @@ HAS_CONFIGURE= yes
CONFIGURE_ENV= \
CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
- LDFLAGS="${LDFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include"
+ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS= --includedir=${LOCALBASE}/include --includedir=${X11BASE}/include
USE_GMAKE= yes
PKGDEINSTALL= ${PKGINSTALL}
+#the default docsdir gets expanded to ${PREFIX}/share/doc/images
+#which isn't of much help when you are searching for the package docs
+DOCSDIR= ${PREFIX}/share/doc/ocaml-images
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= Announce Announce-2.2 CHANGES INSTALL LICENSE doc
+.endif
+
pre-everything::
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
@${ECHO_MSG} ""
@@ -52,6 +60,17 @@ pre-everything::
.endif
post-install:
+.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} -n ">> Installing documentation..."
+ @${MKDIR} ${DOCSDIR}
+ @cd ${WRKSRC} && ${FIND} doc | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
+ @${INSTALL_DATA} ${WRKSRC}/Announce ${DOCSDIR}/
+ @${INSTALL_DATA} ${WRKSRC}/Announce-2.2 ${DOCSDIR}/
+ @${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}/
+ @${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}/
+ @${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}/
+ @${ECHO_MSG} " [DONE]"
+.endif
@${FIND} ${PREFIX}/lib/ocaml/camlimages -type f | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm lib/ocaml/camlimages" >> ${TMPPLIST}