f25f9d2824
we can remove REPLACE_BUILDLINK settings containing *-config, *Conf.sh, and *.pc.
53 lines
1.6 KiB
Makefile
53 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.58 2001/10/03 22:36:40 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= imlib-1.9.11
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=stable/sources/imlib/}
|
|
|
|
MAINTAINER= tron@netbsd.org
|
|
HOMEPAGE= http://www.nl.rasterman.com/imlib.html
|
|
COMMENT= image manipulation library for X11
|
|
|
|
BUILD_DEPENDS+= autoconf>=2.13:../../devel/autoconf
|
|
BUILD_DEPENDS+= automake>=1.4:../../devel/automake
|
|
|
|
USE_X11BASE= yes
|
|
USE_LIBTOOL= yes
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
|
GNU_CONFIGURE= yes
|
|
PLIST_SUBST+= LOCALBASE=${LOCALBASE}
|
|
USE_GMAKE= yes
|
|
|
|
USE_BUILDLINK_ONLY= yes
|
|
|
|
CPPFLAGS+= -DENABLE_NLS
|
|
CONFIGURE_ENV+= ac_cv_path_CONVERT_PROG="${LOCALBASE}/bin/convert"
|
|
CONFIGURE_ENV+= X_LDFLAGS="${X_LDFLAGS}"
|
|
|
|
# The following ensures that `imlib-config --libs' includes the correct
|
|
# linker flags for linking the X11 libs.
|
|
#
|
|
X_LDFLAGS= -Wl,-R${X11BASE}/lib -L${BUILDLINK_X11_DIR}/lib
|
|
|
|
pre-configure:
|
|
${TOUCH} ${WRKSRC}/ltconfig
|
|
cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf --include-deps --force
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/imlib
|
|
cd ${WRKSRC}/doc; ${INSTALL_DATA} *.gif *.html \
|
|
${PREFIX}/share/doc/imlib
|
|
${TEST} ${PREFIX} = ${LOCALBASE} || \
|
|
${LN} -fs ${PREFIX}/share/aclocal/imlib.m4 \
|
|
${LOCALBASE}/share/aclocal/imlib.m4
|
|
|
|
.include "../../devel/gettext-lib/buildlink.mk"
|
|
.include "../../graphics/jpeg/buildlink.mk"
|
|
.include "../../graphics/libungif/buildlink.mk"
|
|
.include "../../graphics/netpbm/buildlink.mk"
|
|
.include "../../graphics/png/buildlink.mk"
|
|
.include "../../graphics/tiff/buildlink.mk"
|
|
.include "../../x11/gtk/buildlink.mk"
|
|
.include "../../mk/x11.buildlink.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|