Lines 6-17
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= panda |
8 |
PORTNAME= panda |
9 |
PORTVERSION= 0.4.p1 |
9 |
PORTVERSION= 0.4.1 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= print |
10 |
CATEGORIES= print |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITE_SUBDIR= panda |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
14 |
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g:S/p/rc/} |
13 |
DISTNAME= ${PORTNAME}_${PORTVERSION} |
15 |
EXTRACT_SUFX= .tgz |
14 |
EXTRACT_SUFX= .tgz |
16 |
|
15 |
|
17 |
MAINTAINER= ports@FreeBSD.org |
16 |
MAINTAINER= ports@FreeBSD.org |
Lines 20-73
Link Here
|
20 |
png.5:${PORTSDIR}/graphics/png \ |
19 |
png.5:${PORTSDIR}/graphics/png \ |
21 |
tiff.4:${PORTSDIR}/graphics/tiff |
20 |
tiff.4:${PORTSDIR}/graphics/tiff |
22 |
|
21 |
|
23 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.p/-rc/} |
22 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
24 |
GNU_CONFIGURE= yes |
23 |
|
25 |
USE_GMAKE= yes |
24 |
USE_GMAKE= yes |
26 |
CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" \ |
25 |
USE_LIBTOOL= yes |
27 |
CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \ |
26 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ |
28 |
LDFLAGS="-L${PREFIX}/lib" \ |
27 |
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" |
29 |
LIBS="${PTHREAD_LIBS}" |
|
|
30 |
MAKE_ARGS= NOPROFILE=true |
31 |
INSTALLS_SHLIB= yes |
28 |
INSTALLS_SHLIB= yes |
32 |
|
29 |
|
33 |
MAN3= checkinfo.3 initpanda.3 makedate.3 nowdate.3 \ |
30 |
.include <bsd.port.pre.mk> |
34 |
panda-textmodes.3 panda-xobjectmodes.3 pdfclose.3 \ |
|
|
35 |
pdfopen.3 pdfpage.3 setauthor.3 setcharacterspacing.3 \ |
36 |
setcreator.3 setfont.3 setfontmode.3 setfontsize.3 \ |
37 |
sethorizontalscaling.3 setkeywords.3 setleading.3 \ |
38 |
setsubject.3 settitle.3 setwordspacing.3 |
39 |
|
40 |
DOCS= AUTHORS BUGS CONTRIBUTORS ChangeLog \ |
41 |
DEV-HINTS README TODO UNDERWAY |
42 |
EXAMPLES= IMAGES *.jpg *.png *.tif main.c legacymain.c |
43 |
|
44 |
post-configure: |
45 |
# GNU make doesn't have a -V option, so we have to add a shot_VARIABLE |
46 |
# target for each variable and run gmake show_VARIABLE to look it up. |
47 |
cd ${WRKSRC} && ${PERL} -pe 's/%%(\w+)%%/ \ |
48 |
open(H, ">> Makefile"); \ |
49 |
print H "show_$$1:; \@echo \$$($$1)\n"; \ |
50 |
close(H); \ |
51 |
$$_ = `${GMAKE} show_$$1`; \ |
52 |
chomp; \ |
53 |
$$_; \ |
54 |
/eg' \ |
55 |
${FILESDIR}/BSDMakefile > ${WRKSRC}/BSDMakefile |
56 |
|
31 |
|
57 |
pre-build: |
32 |
.include "${FILESDIR}/manpages" |
58 |
@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} -f BSDMakefile ${MAKE_ARGS} ${ALL_TARGET} |
|
|
59 |
|
33 |
|
60 |
post-install: |
34 |
post-install: |
61 |
@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} -f BSDMakefile ${MAKE_ARGS} ${INSTALL_TARGET} |
35 |
${INSTALL_MAN} ${WRKSRC}/man/panda_*.3 ${MANPREFIX}/man/man3 |
62 |
.if !defined(NOPORTDOCS) |
36 |
.if !defined(NOPORTDOCS) |
63 |
${MKDIR} ${PREFIX}/share/doc/${PORTNAME} |
37 |
${MKDIR} ${DOCSDIR} |
64 |
.for f in ${DOCS} |
38 |
.for f in AUTHORS CONTRIBUTORS ChangeLog DEV-HINTS README TODO UNDERWAY |
65 |
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/${PORTNAME}/ |
39 |
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} |
66 |
.endfor |
40 |
.endfor |
67 |
${MKDIR} ${PREFIX}/share/examples/${PORTNAME} |
41 |
${MKDIR} ${EXAMPLESDIR} |
68 |
.for f in ${EXAMPLES} |
42 |
.for f in IMAGES examples/*.c examples/images/*.* |
69 |
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/examples/${PORTNAME}/ |
43 |
${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR} |
70 |
.endfor |
44 |
.endfor |
71 |
.endif |
45 |
.endif |
72 |
|
46 |
|
73 |
.include <bsd.port.mk> |
47 |
.include <bsd.port.post.mk> |