[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / xfstt

File: [cvs.NetBSD.org] / pkgsrc / x11 / xfstt / Makefile (download)

Revision 1.32, Wed Jun 13 08:15:13 2012 UTC (7 years ago) by mef
Branch: MAIN
Changes since 1.31: +9 -8 lines

(1) Bump version x11/xfstt 1.6 to 1.9 based on PR pkg/45478
(2) Some pkglint flags cleared, (comment on patches, INSTALATION_DIRS)
(3) (No change) Consider dropping to support gcc-2.95 (huge patches).

1.9 (2012-05-02)
        Fix file descriptor leaks.
        Fix directory resource leaks and segfaults on opening errors.
        Reset the umask before creating the temporary directory.
        Rewrite showttf to use XCB instead of X11.

1.8 (2010-11-09)
	Remove the obsolete `--multi' option.
	Bump gettext dependency to 0.18.
	 -- Use --previous in msgmerge to help translators.
	Blank unused fields of the fsError struct when sending an error.
	Fix segfaults on font open errors (thanks to Edward Welbourne).
	Handle mmap failures which might end up as segfaults otherwise.
	Fix crashes with fortify support when:
	 -- Listing fonts (thanks to Erik Devriendt).
	 -- Setting info file magic and type fields (thanks to Niall Creech).
	Fix segfault on fonts with unknown cmap format.
	Add SIGHUP handler to re-sync fonts cache.
	Do not hardcode any path component in the man page.
	Code cleanup:
	 -- Fixed several compiler warnings.
	 -- Constify types.
	 -- Refactor client state into a new struct.
	 -- Refactor font protocol error reply handling.
	 -- Remove unused or duped includes.
	 -- Switch more C `char *' strings to C++ strings.
	 -- Use C++ algorithm instead of custom code.
	 -- Always include "config.h" first.
	 -- Use <stdint.h> instead of our own types.
	Build system cleanup:
	 -- Detect system endianness at build time.
	 -- Enable silent rules by default if support is available.
	 -- Do not use AM_MAINTAINER_MODE.
	 -- Make X11 usage selectable at configure time (new `--with-x11').
	 -- Always build (but not install) extra tools.
	 -- Use pkg-config to get fontsproto and x11 module flags.
	 -- Fix `make distcheck'.

1.7 (2005-11-30)
	Made gettext external.
	Use autoreconf instead of `autogen.sh'.
	Changed mail address.
	Generate the manpage at build time, to use variable paths and version.
	Remove win32 obsolete code.
	Use new error, warning and info functions.
	Changed some data types names.
	Fix hyphen used as minus sign in manpage.
	Fix build failure on Irix with gcc 3.2 (thanks to Dirk Tilger).
	Add IPv6 support.
	Update FSF's address.

# $NetBSD: Makefile,v 1.32 2012/06/13 08:15:13 mef Exp $
#

DISTNAME=		xfstt-1.9
CATEGORIES=		x11 net fonts
MASTER_SITES=		http://download.berlios.de/xfstt/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://developer.berlios.de/projects/xfstt/
COMMENT=		TrueType font server for X11
LICENSE=		gnu-gpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir

USE_LANGUAGES=		c c++
USE_X11BASE=		YES
USE_TOOLS+=		gmake pkg-config
GNU_CONFIGURE=		YES

# There isn't really any l10n yet, only some preliminary i18n support.
CONFIGURE_ARGS+=	--disable-nls

CXXFLAGS+=		-fomit-frame-pointer -ffast-math

RCD_SCRIPTS=		xfstt
INSTALLATION_DIRS=	bin			\
			${PKGMANDIR}/man1	\
			lib/X11/fonts/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}/src/xfstt ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/doc/xfstt.1x \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xfstt.1
	cd ${WRKSRC} && (					\
	    ${INSTALL_DATA} doc/FAQ CHANGES 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"