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.1 retrieving revision 1.39 diff -u -p -r1.1 -r1.39 --- pkgsrc/x11/xfstt/Makefile 2000/09/04 15:49:36 1.1 +++ pkgsrc/x11/xfstt/Makefile 2014/11/12 15:24:16 1.39 @@ -1,31 +1,50 @@ -# $NetBSD: Makefile,v 1.1 2000/09/04 15:49:36 kim Exp $ -# +# $NetBSD: Makefile,v 1.39 2014/11/12 15:24:16 wiz Exp $ -DISTNAME= xfstt-1.1 -CATEGORIES= x11 net -MASTER_SITES= ${MASTER_SITE_SUNSITE:=X11/fonts/} - -MAINTAINER= packages@netbsd.org +DISTNAME= xfstt-1.9.1 +CATEGORIES= x11 net fonts +MASTER_SITES= http://archive.hadrons.org/software/xfstt/ +EXTRACT_SUFX= .tar.xz + +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 +SUBST_SED.paths= -e 's,/usr,${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 - ${MKDIR} ${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 + ${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"