2003-02-07 17:33:53 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: ocaml-images
|
|
|
|
# Date created: Feb 7, 2003
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= images
|
2005-12-05 17:44:35 +00:00
|
|
|
PORTVERSION= 2.2
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 4
|
2005-12-05 17:44:35 +00:00
|
|
|
PORTEPOCH= 1
|
2003-02-07 17:33:53 +00:00
|
|
|
CATEGORIES= graphics
|
2004-03-24 03:13:47 +00:00
|
|
|
MASTER_SITES= ftp://ftp.inria.fr/INRIA/caml-light/bazar-ocaml/
|
2003-02-07 17:33:53 +00:00
|
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
DISTNAME= camlimages-${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2006-06-14 21:38:09 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:08:19 +00:00
|
|
|
COMMENT= Objective Caml image processing library
|
2003-02-07 17:33:53 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
|
2005-12-05 17:44:35 +00:00
|
|
|
lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk \
|
|
|
|
lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
|
2003-02-07 17:33:53 +00:00
|
|
|
RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
|
2005-12-05 17:44:35 +00:00
|
|
|
lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk \
|
|
|
|
lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
|
2004-03-24 03:13:47 +00:00
|
|
|
LIB_DEPENDS= ungif.5:${PORTSDIR}/graphics/libungif \
|
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
2003-02-07 17:33:53 +00:00
|
|
|
|
2005-12-05 17:44:35 +00:00
|
|
|
USE_GHOSTSCRIPT= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_XORG= xpm
|
2003-02-07 17:33:53 +00:00
|
|
|
USE_FREETYPE= yes
|
2005-12-05 17:44:35 +00:00
|
|
|
HAS_CONFIGURE= yes
|
2003-02-07 17:33:53 +00:00
|
|
|
CONFIGURE_ENV= \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= --includedir=${LOCALBASE}/include
|
2003-02-07 17:33:53 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2004-03-24 03:13:47 +00:00
|
|
|
PKGDEINSTALL= ${PKGINSTALL}
|
|
|
|
|
2006-06-11 08:26:26 +00:00
|
|
|
#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
|
|
|
|
|
2004-03-24 03:13:47 +00:00
|
|
|
post-install:
|
2006-06-11 08:26:26 +00:00
|
|
|
.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
|
2004-03-24 03:13:47 +00:00
|
|
|
@${FIND} ${PREFIX}/lib/ocaml/camlimages -type f | \
|
|
|
|
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm lib/ocaml/camlimages" >> ${TMPPLIST}
|
|
|
|
|
2003-02-07 17:33:53 +00:00
|
|
|
.include <bsd.port.mk>
|