Lines 3-41
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= hp2xx |
4 |
PORTNAME= hp2xx |
5 |
PORTVERSION= 3.4.4 |
5 |
PORTVERSION= 3.4.4 |
6 |
PORTREVISION= 5 |
6 |
PORTREVISION= 6 |
7 |
CATEGORIES= print x11 |
7 |
CATEGORIES= print x11 |
8 |
MASTER_SITES= ${MASTER_SITE_GNU} |
8 |
MASTER_SITES= GNU |
9 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
|
|
10 |
|
9 |
|
11 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= ports@FreeBSD.org |
12 |
COMMENT= HPGL to vector and raster formats converter and previewer for X11 |
11 |
COMMENT= HPGL to vector and raster formats converter and previewer for X11 |
13 |
|
12 |
|
|
|
13 |
LICENSE= GPLv2 # (or later) |
14 |
|
14 |
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \ |
15 |
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \ |
15 |
libtiff.so:${PORTSDIR}/graphics/tiff |
16 |
libtiff.so:${PORTSDIR}/graphics/tiff |
16 |
|
17 |
|
17 |
WRKSRC= ${WRKDIR}/${DISTNAME}/sources |
18 |
WRKSRC_SUBDIR= sources |
18 |
|
19 |
|
19 |
USES= makeinfo |
20 |
USES= makeinfo |
20 |
MAKE_ENV= DEFINES="${CPPFLAGS}" ALL_LIBS="${LDFLAGS}" |
21 |
MAKE_ENV= DEFINES="${CPPFLAGS}" ALL_LIBS="${LDFLAGS}" |
21 |
|
22 |
|
22 |
PLIST_FILES= bin/hp2xx man/man1/hp2xx.1.gz |
|
|
23 |
INFO= hp2xx |
24 |
|
25 |
CPPFLAGS+= -DUNIX -I${LOCALBASE}/include |
23 |
CPPFLAGS+= -DUNIX -I${LOCALBASE}/include |
26 |
LDFLAGS+= -lm -L${LOCALBASE}/lib -ltiff -lpng -lz |
24 |
LDFLAGS+= -lm -L${LOCALBASE}/lib -ltiff -lpng -lz |
27 |
|
25 |
|
28 |
OPTIONS_DEFINE= X11 |
26 |
INFO= hp2xx |
29 |
OPTIONS_DEFAULT=X11 |
27 |
PLIST_FILES= bin/hp2xx man/man1/hp2xx.1.gz |
30 |
|
28 |
|
31 |
X11_USE= XORG=x11 |
29 |
OPTIONS_DEFINE= X11 |
32 |
X11_CPPFLAGS= -DHAS_UNIX_X11 -I${LOCALBASE}/include |
30 |
OPTIONS_DEFAULT= X11 |
33 |
X11_LDFLAGS= -L${LOCALBASE}/lib -lX11 |
31 |
|
|
|
32 |
X11_USE= XORG=x11 |
34 |
X11_MAKE_ENV= PREVIEWER=to_x11 |
33 |
X11_MAKE_ENV= PREVIEWER=to_x11 |
35 |
X11_MAKE_ENV_OFF= PREVIEWER=no_prev |
34 |
X11_MAKE_ENV_OFF= PREVIEWER=no_prev |
36 |
|
35 |
X11_CPPFLAGS= -DHAS_UNIX_X11 -I${LOCALBASE}/include |
37 |
post-patch: |
36 |
X11_LDFLAGS= -L${LOCALBASE}/lib -lX11 |
38 |
@${REINPLACE_CMD} -E 's,(bin|info|man1)dir),DESTDIR)$$(&,' \ |
|
|
39 |
${WRKSRC}/Makefile |
40 |
|
37 |
|
41 |
.include <bsd.port.mk> |
38 |
.include <bsd.port.mk> |