blob: 5ceda2dd9c2f958842c6498f3eee094e46336867 (
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
42
43
44
|
# $NetBSD: Makefile,v 1.8 2000/07/15 20:39:21 agc Exp $
#
DISTNAME= libwmf-0.1.17
CATEGORIES= graphics devel
MASTER_SITES= http://www.csn.ul.ie/~caolan/publink/libwmf/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.csn.ul.ie/~caolan/docs/libwmf.html
BUILD_DEPENDS+= ${LOCALBASE}/bin/autoconf:../../devel/autoconf
DEPENDS+= freetype-lib-*:../../graphics/freetype-lib
DEPENDS+= png>=1.0.6:../../graphics/png
DEPENDS+= xpm-3.4k:../../graphics/xpm
# uses own gd, which has some extra functionality
CONFLICTS+= gd-1.7.3:../../graphics/gd
WRKSRC= ${WRKDIR}/libwmf
USE_X11= YES
GNU_CONFIGURE= YES
EVAL_PREFIX+= XPMDIR=xpm
CONFIGURE_ARGS+= --with-png="${LOCALBASE}"
CONFIGURE_ARGS+= --with-ttf="${LOCALBASE}"
CONFIGURE_ARGS+= --with-xpm="${XPMDIR}"
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
pre-configure:
cd ${WRKSRC}; ${LOCALBASE}/bin/autoconf
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libwmf
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libwmf/pics
cd ${WRKSRC} && ${INSTALL_DATA} doc/*.html doc/*.gif \
COPYING CREDITS README ${PREFIX}/share/doc/libwmf
${INSTALL_DATA} ${WRKSRC}/doc/pics/weave.jpg \
${PREFIX}/share/doc/libwmf/pics
${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"
|