2002-07-15 20:00:33 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: gerbv
|
|
|
|
# Date created: Jul 16, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gerbv
|
2007-12-14 17:05:14 +00:00
|
|
|
PORTVERSION= 1.0.3
|
2002-07-15 20:00:33 +00:00
|
|
|
CATEGORIES= cad
|
2007-12-14 17:05:14 +00:00
|
|
|
MASTER_SITES= SF
|
2002-07-15 20:00:33 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= A Free Gerber Viewer
|
2002-07-15 20:00:33 +00:00
|
|
|
|
2004-06-27 18:02:24 +00:00
|
|
|
USE_GNOME= gnometarget gtk20
|
2002-07-15 20:00:33 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-02-02 13:54:17 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2002-07-15 20:00:33 +00:00
|
|
|
|
2004-12-31 13:17:30 +00:00
|
|
|
MAN1= gerbv.1
|
2002-07-15 20:00:33 +00:00
|
|
|
|
2003-02-08 05:27:23 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
2003-02-02 13:54:17 +00:00
|
|
|
|
2004-12-31 13:17:30 +00:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name "configure" | ${XARGS} ${REINPLACE_CMD} -e \
|
2007-12-14 17:05:14 +00:00
|
|
|
's|LIBPNG_CONFIG --cflags|PKG_CONFIG --cflags libpng12|g ; \
|
|
|
|
s|LIBPNG_CONFIG --ldflags|PKG_CONFIG --libs libpng12|g'
|
2004-12-31 13:17:30 +00:00
|
|
|
|
2002-07-15 20:00:33 +00:00
|
|
|
post-install:
|
2002-08-05 04:25:24 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-07-15 20:00:33 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-06-27 18:02:24 +00:00
|
|
|
cd ${WRKSRC}/doc && ${FIND} . ! -name "*Makefile*" | \
|
2004-01-22 12:18:43 +00:00
|
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
2007-12-14 17:05:14 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2002-07-15 20:00:33 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2004-06-27 18:02:24 +00:00
|
|
|
cd ${WRKSRC}/example && ${FIND} . ! -name "*Makefile*" | \
|
2004-01-22 12:18:43 +00:00
|
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
2002-07-15 20:00:33 +00:00
|
|
|
.endif
|
|
|
|
|
2003-04-27 18:06:41 +00:00
|
|
|
.include <bsd.port.mk>
|