mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
420144bebe
PR: ports/71882 Submitted by: KATO Tsuguru <tkato432 at yahoo dot com>
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: ploticus
|
|
# Date created: Jan 23, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ploticus
|
|
PORTVERSION= 2.30
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://ploticus.sourceforge.net/download/
|
|
DISTNAME= pl${PORTVERSION:S/.//}src
|
|
|
|
MAINTAINER?= linimon@FreeBSD.org
|
|
COMMENT?= Generates plots and graphs from data
|
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
ming.3:${PORTSDIR}/graphics/ming \
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
CONFLICTS= slffea-* swi-pl-* TenDRA-*
|
|
|
|
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
|
|
|
|
.ifdef (WITHOUT_X11)
|
|
MAKE_ARGS+= NOXFLAG=-DNOX11 XLIBS= XOBJ=
|
|
PKGNAMESUFFIX= -nox11
|
|
.else
|
|
USE_XPM= yes
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pl ${PREFIX}/bin
|
|
@${MKDIR} ${DATADIR}
|
|
cd ${WRKSRC}/../prefabs && ${FIND} . | \
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
cd ${WRKSRC}/../pltestsuite && ${FIND} . | \
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|