2013-03-28 04:28:30 +01:00
|
|
|
# Created by: ijliao
|
2003-10-29 02:51:07 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= diacanvas2
|
2009-11-13 01:10:33 +01:00
|
|
|
PORTVERSION= 0.15.4
|
2013-05-21 13:35:49 +02:00
|
|
|
PORTREVISION= 4
|
2003-10-29 02:51:07 +01:00
|
|
|
CATEGORIES= graphics gnome
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/diacanvas/DiaCanvas2/${PORTVERSION}
|
2009-11-13 01:10:33 +01:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
2003-10-29 02:51:07 +01:00
|
|
|
|
2006-09-05 10:34:16 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-07-09 11:12:19 +02:00
|
|
|
COMMENT= General drawing canvas from dia dialog editor
|
2003-10-29 02:51:07 +01:00
|
|
|
|
2014-03-12 21:21:56 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-07-09 11:12:19 +02:00
|
|
|
USES= gmake pathfix pkgconfig
|
2013-03-28 04:28:30 +01:00
|
|
|
USE_GNOME= pygnome2
|
2014-01-13 22:00:02 +01:00
|
|
|
USE_PYTHON= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
- 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
|
|
|
USE_LDCONFIG= yes
|
2013-07-13 15:58:02 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2004-05-08 00:33:39 +02:00
|
|
|
|
2014-03-12 21:21:56 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
|
2009-11-13 01:10:33 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2014-03-12 21:21:56 +01:00
|
|
|
OPTIONS_DEFINE= NLS PRINT
|
2013-05-21 13:35:49 +02:00
|
|
|
OPTIONS_DEFAULT=PRINT
|
|
|
|
PRINT_DESC= GNOME print support
|
2014-03-12 21:21:56 +01:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
PRINT_CONFIGURE_ENABLE= gnome-print
|
2013-05-21 13:35:49 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPRINT}
|
|
|
|
USE_GNOME+= libgnomeprintui
|
|
|
|
.endif
|
|
|
|
|
2004-04-09 15:48:47 +02:00
|
|
|
post-patch:
|
2014-03-12 21:21:56 +01:00
|
|
|
@${REINPLACE_CMD} -e '/SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
.if ! ${PORT_OPTIONS:MNLS}
|
|
|
|
@${REINPLACE_CMD} -e 's|po diacanvas po |diacanvas |' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.0
|
|
|
|
.for l in _canvasmodule shapemodule viewmodule geometrymodule
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR}/diacanvas/${l}.so
|
|
|
|
.endfor
|
2004-03-25 10:14:17 +01:00
|
|
|
|
2005-01-12 23:49:19 +01:00
|
|
|
.include <bsd.port.mk>
|