Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/x11/xfstt/Makefile,v rcsdiff: /ftp/cvs/cvsroot/pkgsrc/x11/xfstt/Makefile,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.4 retrieving revision 1.37 diff -u -p -r1.4 -r1.37 --- pkgsrc/x11/xfstt/Makefile 2001/02/25 04:18:29 1.4 +++ pkgsrc/x11/xfstt/Makefile 2014/11/12 15:16:08 1.37 @@ -1,38 +1,50 @@ -# $NetBSD: Makefile,v 1.4 2001/02/25 04:18:29 hubertf Exp $ -# +# $NetBSD: Makefile,v 1.37 2014/11/12 15:16:08 wiz Exp $ -DISTNAME= xfstt-1.1 -PKGNAME= ${DISTNAME}nb1 -CATEGORIES= x11 net -MASTER_SITES= ${MASTER_SITE_SUNSITE:=X11/fonts/} +DISTNAME= xfstt-1.9 +CATEGORIES= x11 net fonts +MASTER_SITES= http://archive.hadrons.org/software/xfstt/ -MAINTAINER= packages@netbsd.org +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.hadrons.org/software/xfstt/ COMMENT= TrueType font server for X11 +LICENSE= gnu-gpl-v2 +USE_LANGUAGES= c c++ USE_X11BASE= YES +USE_TOOLS+= gmake pkg-config +GNU_CONFIGURE= YES -post-patch: - @( \ - cd ${WRKSRC} ; \ - for i in INSTALL perftest.cpp xfstt.cpp ; \ - do \ - ${MV} $$i $$i.bak ; \ - ${SED} -e 's;@X11BASE@;${X11BASE};' < $$i.bak > $$i ; \ - done ; \ - ) +# There isn't really any l10n yet, only some preliminary i18n support. +CONFIGURE_ARGS+= --disable-nls + +CXXFLAGS+= -fomit-frame-pointer -ffast-math + +LDFLAGS.SunOS+= -lsocket -lnsl + +RCD_SCRIPTS= xfstt +INSTALLATION_DIRS= bin \ + ${PKGMANDIR}/man1 \ + share/fonts/X11/TTF \ + share/doc/xfstt \ + share/examples/xfstt + +SUBST_CLASSES+= paths +SUBST_FILES.paths= doc/FAQ doc/xfstt.1x +SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},g' +SUBST_STAGE.paths= post-patch do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/xfstt ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/xfstt.1x ${PREFIX}/man/man1/xfstt.1 - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xfstt - ${INSTALL_DATA} ${WRKSRC}/FAQ ${PREFIX}/share/doc/xfstt - ${INSTALL_DATA} ${WRKSRC}/CHANGES ${PREFIX}/share/doc/xfstt - ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/xfstt - ${INSTALL_DATA} ${WRKSRC}/THANKS.txt ${PREFIX}/share/doc/xfstt - ${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/xfstt.sh \ - > ${PREFIX}/etc/rc.d/xfstt - ${CHMOD} 755 ${PREFIX}/etc/rc.d/xfstt - $(INSTALL_DATA_DIR) $(PREFIX)/lib/X11/fonts/TrueType - ${ECHO} belongs to xfstt pkg >$(PREFIX)/lib/X11/fonts/TrueType/.keepme + ${INSTALL_PROGRAM} ${WRKSRC}/src/xfstt ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doc/xfstt.1x \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xfstt.1 + cd ${WRKSRC} && ( \ + ${INSTALL_DATA} doc/FAQ TODO THANKS \ + ${DESTDIR}${PREFIX}/share/doc/xfstt/ ; \ + ${INSTALL_DATA} doc/examples/font.properties \ + ${DESTDIR}${PREFIX}/share/examples/xfstt/ \ + ) + +.include "../../x11/fontsproto/buildlink3.mk" +.include "../../x11/xproto/buildlink3.mk" .include "../../mk/bsd.pkg.mk"