summaryrefslogtreecommitdiff
path: root/graphics/pstoedit/Makefile
blob: c5f4a410242fc9308bec78695430f2cc127965ef (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
46
47
# New ports collection makefile for:	pstodit
# Date created:		03 July 1998
# Whom:			Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	pstoedit
PORTVERSION=	3.31
CATEGORIES=	graphics print
MASTER_SITES=	http://home.t-online.de/home/helga.glunz/wglunz/pstoedit/
DISTNAME=	${PORTNAME}_${PORTVERSION:S/./_/}

MAINTAINER=	ports@FreeBSD.org

BUILD_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/graphics/ming:extract
LIB_DEPENDS=	ming.3:${PORTSDIR}/graphics/ming \
		plot.4:${PORTSDIR}/graphics/plotutils \
		plotter.4:${PORTSDIR}/graphics/plotutils
RUN_DEPENDS=	gs:${PORTSDIR}/print/ghostscript-gnu

WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION}/src

USE_ZIP=	yes
GNU_CONFIGURE=	yes
CONFIGURE_SCRIPT=	../config/configure
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
ALL_TARGET=	default

MAN1=	pstoedit.1

CPPFLAGS=	-I${LOCALBASE}/include/ming -I${LOCALBASE}/include \
		-I${X11BASE}/include
LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib

post-extract:
	@${LN} -sf `cd ${PORTSDIR}/graphics/ming && ${MAKE} -V WRKSRC`/../util \
		${WRKSRC}/util

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/../*.htm ${DOCSDIR}
.endif

.include <bsd.port.mk>