1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/print/perlftlib/Makefile
Erwin Lansing 50513d5d52 Add support for DESTDIR part I.
This commit should largele be a NOOP as it only adds support
for DESTDIR undefined. This does allow us to start testing
ports with DESTDIR set, but this is as of yet not supported.

Although this has been extensively tested on pointyhat, this
is a very intrusive change and some cases may have been
overlooked. Please contact Gabor and me if you find any.

PR:             100555
Submitted by:   gabor
Sponsored by:   Google Summer of Code 2006
2006-08-04 12:34:50 +00:00

42 lines
931 B
Makefile

# New ports collection makefile for: perlftlib
# Date created: 98/12/22
# Whom: Satoshi TAOKA <taoka@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= perlftlib
PORTVERSION= 1.2
CATEGORIES= print perl5
MASTER_SITES= ${MASTER_SITE_PORTS_JP} \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= sada
MAINTAINER= ports@FreeBSD.org
COMMENT= Libraries to use the FreeType library from the perl language
RUN_DEPENDS= ${SITE_PERL}/jcode.pl:${PORTSDIR}/japanese/jcode.pl
USE_FREETYPE= yes
USE_PERL5= yes
NOMANCOMPRESS= yes
MAN1= mkttfdir.1 ftinfo.1
MAN3= FreeType.3
MAN3PREFIX= ${TARGETDIR}/lib/perl5/${PERL_VERSION}
MAKE_ENV= PERL_VER=${PERL_VER} PERL5=${PERL5}
post-patch:
.for VAR in LOCALBASE PREFIX
@${PERL} -pi -e 's!%%${VAR}%%!${${VAR}}!g' \
${WRKSRC}/FreeType/Makefile.PL
.endfor
post-build:
.for DIST in ftinfo mkttfdir
@${PERL} -pi -e 's;^#! */usr/local/bin/perl *;#!${PERL5};' \
${WRKSRC}/${DIST}
.endfor
.include <bsd.port.mk>