summaryrefslogtreecommitdiff
path: root/japanese/vflib-lib/Makefile.common
blob: 3dbab4af40a0c76cdf72461840b6991f1cdfc3c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $NetBSD: Makefile.common,v 1.10 2001/06/10 00:08:45 jlam Exp $
# FreeBSD Id: Makefile,v 1.20 1999/05/03 01:58:33 steve Exp $

DISTNAME=		VFlib2-${VFLIB_VERSION}
CATEGORIES+=		japanese print
MASTER_SITES+=		ftp://gull.se.hiroshima-u.ac.jp/pub/TypeHack/
DISTFILES+=		${VFLIB_SRC}

VFLIB_SRC=		${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=		tech-pkg-ja@jp.netbsd.org
HOMEPAGE=		http://TypeHack.aial.hiroshima-u.ac.jp/VFlib/

VFLIB_VERSION=		2.24.2
PLIST_SUBST+=		VFLIB_VERSION=${VFLIB_VERSION}
PLIST_SUBST+=		VFLIB_SO_VERSION=${VFLIB_VERSION:C/^2.//}

USE_LIBTOOL=		# defined
LTCONFIG_OVERRIDE=	${WRKSRC}/ltconfig

.include "../../graphics/freetype-lib/buildlink.mk"

FT_LIB=			ttf -lintl
FT_INCLUDEDIR=		${BUILDLINK_INCDIR}/freetype
FT_LIBDIR=		${BUILDLINK_LIBDIR}

GNU_CONFIGURE=		# defined
CONFIGURE_ARGS+=	--with-freetype="${FT_LIB}"
CONFIGURE_ARGS+=	--with-freetype-includedir=${FT_INCLUDEDIR}
CONFIGURE_ARGS+=	--with-freetype-libdir=${FT_LIBDIR}
MAKE_ENV+=		LOCAL_LDFLAGS="${LDFLAGS}"

CFLAGS+=		-I${BUILDLINK_INCDIR}
LDFLAGS+=		-L${BUILDLINK_LIBDIR}

DISTINFO_FILE=		${.CURDIR}/../../japanese/vflib-lib/distinfo
PATCHDIR=		${.CURDIR}/../../japanese/vflib-lib/patches

EXTRACT_ONLY=		${VFLIB_SRC}

.include "../../mk/bsd.pkg.mk"