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
|
2005-03-07 13:46:51 +00:00
|
|
|
PORTVERSION= 1.0.1
|
2005-11-05 05:22:06 +00:00
|
|
|
PORTREVISION= 2
|
2002-07-15 20:00:33 +00:00
|
|
|
CATEGORIES= cad
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
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
|
2003-04-27 18:06:41 +00:00
|
|
|
USE_GETOPT_LONG= yes
|
2004-12-31 13:17:30 +00:00
|
|
|
USE_REINPLACE= yes
|
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}"
|
2004-06-27 18:02:24 +00:00
|
|
|
CONFIGURE_ARGS= --enable-gtk2
|
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 \
|
|
|
|
's|libpng-config --cflags|pkg-config --cflags libpng12|g ; \
|
|
|
|
s|libpng-config --libs|pkg-config --libs libpng12|g'
|
|
|
|
|
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}
|
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>
|