1c4c48f91a
- use MASTER_SITE_FEDORA (pet portlint a little bit) - while I'm here: SHA256 (no MD5 change, Kris: no need to check :) ) This should also fix the package build of the linux XFree86 bits. Pointyhat to: netchild [1]
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
# New ports collection makefile for: linux-fontconfig
|
|
# Date created: 2003-11-19
|
|
# Whom: trevor
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= fontconfig
|
|
PORTVERSION= 2.2.3
|
|
PORTREVISION= 2
|
|
CATEGORIES= x11-fonts linux
|
|
MASTER_SITES= ${MASTER_SITE_FEDORA_LINUX}
|
|
MASTER_SITE_SUBDIR=3/x86_64/os/Fedora/RPMS
|
|
|
|
MAINTAINER= freebsd-emulation@FreeBSD.org
|
|
COMMENT= Linux/i386 binary of Fontconfig
|
|
|
|
EXTRACT_DEPENDS=rpm2cpio:${PORTSDIR}/archivers/rpm
|
|
RUN_DEPENDS= ${LINUXBASE}/usr/lib/libexpat.so.0:${PORTSDIR}/textproc/linux-expat
|
|
|
|
USE_REINPLACE= yes
|
|
BASEVERSION= 9
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
RPM_SET= fontconfig-2.2.3-5.i386.rpm
|
|
PLIST= ${PKGDIR}/pkg-plist
|
|
|
|
#PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
do-extract:
|
|
@${RM} -rf ${WRKSRC}/tmp
|
|
@${MKDIR} ${WRKSRC}/tmp
|
|
@cd ${WRKSRC}/tmp; \
|
|
rpm2cpio < ${DISTDIR}/${DIST_SUBDIR}/${RPM_SET} | ${CPIO} -id;
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -i "" -e 's:/usr/share/fonts:${X11BASE}/lib/X11/fonts:g ; \
|
|
s:/usr/X11R6/lib/X11/fonts/OTF:${X11BASE}/lib/X11/fonts/bitstream-vera:g' \
|
|
${WRKSRC}/tmp/etc/fonts/fonts.conf
|
|
|
|
post-install:
|
|
@${INSTALL_DATA} ${WRKSRC}/tmp/etc/fonts/fonts.conf ${PREFIX}/etc/fonts/
|
|
@${BRANDELF} -t Linux ${PREFIX}/usr/bin/fc-cache ${PREFIX}/usr/bin/fc-list
|
|
# @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' < ${FILESDIR}/pkg-install.in \
|
|
# > ${PKGINSTALL}
|
|
#.if !defined(PACKAGE_BUILDING)
|
|
# @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
#.endif
|
|
|
|
.include "../../x11-toolkits/linux-gtk/Makefile"
|