aboutsummaryrefslogtreecommitdiffstats
path: root/cad/gerbv/Makefile
blob: db96fc7db21c42fdc3e1947105d402421b2e5c58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ex:ts=8
# Ports collection makefile for:    gerbv
# Date created:         Jul 16, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   gerbv
PORTVERSION=    1.0.1
CATEGORIES= cad
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Free Gerber Viewer

USE_GNOME=  gnometarget gtk20
USE_GETOPT_LONG=    yes
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-gtk2

MAN1=       gerbv.1

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'

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/doc && ${FIND} . ! -name "*Makefile*" | \
        ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
    @${MKDIR} ${EXAMPLESDIR}
    cd ${WRKSRC}/example && ${FIND} . ! -name "*Makefile*" | \
        ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>