1998-07-16 08:35:29 +02:00
|
|
|
# New ports collection makefile for: pstodit
|
|
|
|
# Date created: 03 July 1998
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1998-07-16 08:35:29 +02:00
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1998-07-16 08:35:29 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= pstoedit
|
2009-08-29 01:30:08 +02:00
|
|
|
PORTVERSION= 3.50
|
2010-07-24 21:49:59 +02:00
|
|
|
PORTREVISION= 4
|
1998-07-16 08:35:29 +02:00
|
|
|
CATEGORIES= graphics print
|
2009-08-29 01:30:08 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
|
1998-07-16 08:35:29 +02:00
|
|
|
|
2001-09-17 19:40:31 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= Convert PostScript to other vector graphic formats
|
1998-07-16 08:35:29 +02:00
|
|
|
|
2006-03-31 05:23:21 +02:00
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
|
|
|
|
|
2005-08-30 05:05:40 +02:00
|
|
|
OPTIONS= IMAGEMAGICK "Enable magick++ interface" on \
|
|
|
|
EMF "Enable emf interface" on \
|
|
|
|
MING "Enable swf interface" on \
|
|
|
|
PLOTUTILS "Enable libplot interface" on
|
2003-08-31 02:40:17 +02:00
|
|
|
|
2009-08-29 01:30:08 +02:00
|
|
|
USE_GNOME= gnomehack pkgconfig
|
2005-08-30 05:05:40 +02:00
|
|
|
USE_GHOSTSCRIPT= yes
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2002-09-19 22:40:24 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2006-08-15 01:06:39 +02:00
|
|
|
USE_LDCONFIG= yes
|
2000-03-09 11:02:47 +01:00
|
|
|
|
2006-03-31 05:23:21 +02:00
|
|
|
MAN1= pstoedit.1
|
2000-03-09 11:02:47 +01:00
|
|
|
|
2009-08-29 01:30:08 +02:00
|
|
|
CFLAGS+= -DHAVE_LIBGD
|
2003-02-08 06:27:23 +01:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include/ming -I${LOCALBASE}/include \
|
- 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 19:56:05 +02:00
|
|
|
-I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
2002-03-12 01:56:14 +01:00
|
|
|
|
2005-08-30 05:05:40 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_IMAGEMAGICK)
|
|
|
|
CONFIGURE_ARGS+= --without-magick
|
|
|
|
PLIST_SUB+= IMAGEMAGICK="@comment "
|
|
|
|
.else
|
2010-07-24 21:49:59 +02:00
|
|
|
LIB_DEPENDS+= Magick++.4:${PORTSDIR}/graphics/ImageMagick
|
2005-08-30 05:05:40 +02:00
|
|
|
PLIST_SUB+= IMAGEMAGICK=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_EMF)
|
|
|
|
CONFIGURE_ARGS+= --without-emf
|
|
|
|
PLIST_SUB+= EMF="@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= EMF.1:${PORTSDIR}/graphics/libemf
|
|
|
|
CONFIGURE_ARGS+= --with-libemf-include=${LOCALBASE}/include/libEMF
|
|
|
|
PLIST_SUB+= EMF=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_MING)
|
|
|
|
CONFIGURE_ARGS+= --without-swf
|
|
|
|
PLIST_SUB+= MING="@comment "
|
|
|
|
.else
|
2006-04-23 16:00:05 +02:00
|
|
|
LIB_DEPENDS+= ming.4:${PORTSDIR}/graphics/ming
|
2005-08-30 05:05:40 +02:00
|
|
|
PLIST_SUB+= MING=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_PLOTUTILS)
|
|
|
|
CONFIGURE_ARGS+= --without-libplot
|
|
|
|
PLIST_SUB+= PLOTUTILS="@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= plotter.4:${PORTSDIR}/graphics/plotutils
|
|
|
|
PLIST_SUB+= PLOTUTILS=""
|
|
|
|
.endif
|
|
|
|
|
2003-10-26 12:08:44 +01:00
|
|
|
post-patch:
|
2005-08-30 05:05:40 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|CXXFLAGS="-g"|CXXFLAGS="$$CXXFLAGS"|g ; \
|
2005-09-28 20:26:32 +02:00
|
|
|
s|GraphicsMagick|Magick|g ; \
|
|
|
|
s|=$$OLDCPPFLAGS|=$$CPPFLAGS|g ; \
|
2005-08-30 05:05:40 +02:00
|
|
|
s|-pedantic||g' ${WRKSRC}/configure
|
2007-10-05 23:55:02 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/src/Makefile.in
|
2003-10-26 12:08:44 +01:00
|
|
|
|
2000-03-09 11:02:47 +01:00
|
|
|
post-install:
|
2002-09-19 22:40:24 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/pstoedit.1 ${MANPREFIX}/man/man1
|
2001-10-06 17:43:19 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-08-30 05:05:40 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.htm ${DOCSDIR}
|
2000-03-09 11:02:47 +01:00
|
|
|
.endif
|
1998-07-16 08:35:29 +02:00
|
|
|
|
2005-08-30 05:05:40 +02:00
|
|
|
.include <bsd.port.post.mk>
|