1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/cad/gerbv/Makefile

47 lines
1.1 KiB
Makefile
Raw Normal View History

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
PORTVERSION= 1.0.1
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
USE_GNOME= gnometarget gtk20
USE_GETOPT_LONG= yes
USE_REINPLACE= yes
2002-07-15 20:00:33 +00:00
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-gtk2
2002-07-15 20:00:33 +00:00
MAN1= gerbv.1
2002-07-15 20:00:33 +00:00
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
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:
.if !defined(NOPORTDOCS)
2002-07-15 20:00:33 +00:00
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${FIND} . ! -name "*Makefile*" | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
2002-07-15 20:00:33 +00:00
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/example && ${FIND} . ! -name "*Makefile*" | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
2002-07-15 20:00:33 +00:00
.endif
.include <bsd.port.mk>