19a718ac4c
apps to bsd.gnomeng.mk. The goal is to make GNOME1 framework more modular, which will allow to use GNOME1 apps with GNOME2 desktop as well as considerably reduce langht of dependency chains for GNOME1 ports (for example after this commit AbiWord's dependency chain was reduced by 7 ports from 57 to only 50, while Gnumeric's - from 60 to 53 and so on). The most of the GNOME1 apps are still not converted, so that lot of work is still ahead. Please report any unusual problems to gnome@FreeBSD.org. Discussed with: marcus Reviewed by: marcus
68 lines
2.2 KiB
Makefile
68 lines
2.2 KiB
Makefile
# New ports collection makefile for: scrollkeeper
|
|
# Date created: 6 April 2001
|
|
# Whom: Rene Hexel <rh@netbsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= scrollkeeper
|
|
PORTVERSION= 0.3.9
|
|
PORTEPOCH= 1
|
|
CATEGORIES= textproc gnome
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
|
MASTER_SITE_SUBDIR= 2.0.0/releases/gnome-2.0-desktop-final
|
|
DIST_SUBDIR= gnome2
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
LIB_DEPENDS= xslt.1:${PORTSDIR}/textproc/libxslt \
|
|
intl.2:${PORTSDIR}/devel/gettext
|
|
BUILD_DEPENDS= intltool-extract:${PORTSDIR}/textproc/intltool \
|
|
${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl
|
|
RUN_DEPENDS= intltool-extract:${PORTSDIR}/textproc/intltool \
|
|
${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl
|
|
|
|
# Don't use USE_X_PREFIX - the port doesn't really require X11 to run.
|
|
# The reason why it should be in X11BASE is that GNOME is the primary
|
|
# (only?) consumer of this port, and BadThings[tm] happen if it's not
|
|
# put in the right place.
|
|
PREFIX?= ${X11BASE}
|
|
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USE_LIBTOOL= yes
|
|
USE_BISON= yes
|
|
USE_REINPLACE= yes
|
|
USE_GNOMENG= yes
|
|
USE_GNOME= gnomehack gnomehier
|
|
INSTALLS_SHLIB= yes
|
|
CONFIGURE_ARGS= --localstatedir=/var --datadir=${PREFIX}/share/gnome \
|
|
--with-omfdirs=${PREFIX}/share/gnome/omf
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LIBS="-L${LOCALBASE}/lib -lintl" \
|
|
LOCALBASE="${LOCALBASE}"
|
|
PLIST_SUB= LOCALBASE=${LOCALBASE}
|
|
|
|
MAN1= scrollkeeper-config.1 scrollkeeper-gen-seriesid.1
|
|
MAN5= scrollkeeper.conf.5
|
|
MAN7= scrollkeeper.7
|
|
MAN8= scrollkeeper-preinstall.8 scrollkeeper-rebuilddb.8 \
|
|
scrollkeeper-update.8
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
|
|
@find ${WRKSRC} -name Makefile.in | xargs ${REINPLACE_CMD} -e \
|
|
's|[(]LN_S[)] -f -n|(LN_S) -f|g'
|
|
@${REINPLACE_CMD} -e 's|/usr/share/locale|${PREFIX}/share/locale|g' \
|
|
${WRKSRC}/libs/scrollkeeper.h.in
|
|
@${REINPLACE_CMD} -e 's|[%][%]PREFIX[%][%]|${PREFIX}|g' \
|
|
${WRKSRC}/cl/src/update.c
|
|
@${REINPLACE_CMD} -e 's|[%][%]LOCALBASE[%][%]|${LOCALBASE}|g' \
|
|
${WRKSRC}/extract/dtds/Makefile.in
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|