2002-01-23 20:32:29 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: ploticus
|
|
|
|
# Date created: Jan 23, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ploticus
|
2005-09-22 11:36:41 +02:00
|
|
|
PORTVERSION= 2.32
|
2006-04-19 17:41:53 +02:00
|
|
|
PORTREVISION= 1
|
2002-01-23 20:32:29 +01:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= http://ploticus.sourceforge.net/download/
|
2003-12-09 20:52:19 +01:00
|
|
|
DISTNAME= pl${PORTVERSION:S/.//}src
|
2002-01-23 20:32:29 +01:00
|
|
|
|
2003-12-25 08:54:56 +01:00
|
|
|
MAINTAINER?= linimon@FreeBSD.org
|
2003-10-10 13:44:06 +02:00
|
|
|
COMMENT?= Generates plots and graphs from data
|
2002-01-23 20:32:29 +01:00
|
|
|
|
2003-08-18 18:15:10 +02:00
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
|
2003-01-03 19:31:24 +01:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2006-04-19 17:41:53 +02:00
|
|
|
ming.4:${PORTSDIR}/graphics/ming \
|
2003-01-03 19:31:24 +01:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2002-01-23 20:32:29 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
2003-07-01 09:25:59 +02:00
|
|
|
|
|
|
|
FREETYPE_CONFIG?= ${LOCALBASE}/bin/freetype-config
|
|
|
|
|
|
|
|
MAKE_ARGS= CC="${CC}" FLAGS="${CFLAGS}" \
|
|
|
|
LOCALEOBJ="localef.o" LOCALE_FLAG="-DLOCALE" \
|
|
|
|
MING="-L${LOCALBASE}/lib -lming" \
|
|
|
|
MINGH="-I${LOCALBASE}/include/ming" NOSWFFLAG="" \
|
|
|
|
GD18LIBS="`${FREETYPE_CONFIG} --libs` \
|
|
|
|
-L${LOCALBASE}/lib -lgd -lpng -lz -ljpeg" \
|
|
|
|
GD18H="`${FREETYPE_CONFIG} --cflags` \
|
|
|
|
-L${LOCALBASE}/include" \
|
|
|
|
GDFREETYPE="-DGDFREETYPE" PREFABS_DIR="${DATADIR}"
|
|
|
|
ALL_TARGET= plgd18
|
2002-01-23 20:32:29 +01:00
|
|
|
|
2003-10-10 13:44:06 +02:00
|
|
|
.ifdef (WITHOUT_X11)
|
2003-10-10 07:44:46 +02:00
|
|
|
MAKE_ARGS+= NOXFLAG=-DNOX11 XLIBS= XOBJ=
|
|
|
|
PKGNAMESUFFIX= -nox11
|
|
|
|
.else
|
|
|
|
USE_XPM= yes
|
|
|
|
.endif
|
|
|
|
|
2002-01-23 20:32:29 +01:00
|
|
|
do-install:
|
2005-03-07 03:38:18 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pl ${PREFIX}/bin/ploticus
|
2002-01-23 20:32:29 +01:00
|
|
|
@${MKDIR} ${DATADIR}
|
2003-12-09 20:52:19 +01:00
|
|
|
cd ${WRKSRC}/../prefabs && ${FIND} . | \
|
2004-01-22 13:18:43 +01:00
|
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
2002-01-23 20:32:29 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-12-09 20:52:19 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/../pltestsuite && ${FIND} . | \
|
2004-01-22 13:18:43 +01:00
|
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
2002-01-23 20:32:29 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|