c487cb967a
in the process. (More information on tech-pkg.) Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and installing .la files. Bump PKGREVISION (only) of all packages depending directly on the above via a buildlink3 include.
91 lines
2.5 KiB
Makefile
91 lines
2.5 KiB
Makefile
# $NetBSD: Makefile.common,v 1.17 2004/10/03 00:18:40 tv Exp $
|
|
#
|
|
# This Makefile.common is included by:
|
|
#
|
|
# x11/xlockmore/Makefile
|
|
# x11/xlockmore-lite/Makefile
|
|
#
|
|
# If these packages are updated, please remember to reset any PKGREVISIONs
|
|
# in those Makefiles.
|
|
|
|
DISTNAME= xlockmore-5.13
|
|
PKGREVISION= 1
|
|
CATEGORIES= x11
|
|
MASTER_SITES= ftp://ftp.tux.org/pub/tux/bagleyd/xlockmore/ \
|
|
ftp://ibiblio.org/pub/Linux/X11/screensavers/ \
|
|
${MASTER_SITE_XCONTRIB:=applications/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= hubertf@NetBSD.org
|
|
HOMEPAGE= http://www.tux.org/~bagleyd/xlockmore.html
|
|
|
|
CONFLICTS+= xlockmore-[0-9]* xlockmore-lite-[0-9]*
|
|
|
|
DISTINFO_FILE?= ${.CURDIR}/../xlockmore/distinfo
|
|
PATCHDIR?= ${.CURDIR}/../xlockmore/patches
|
|
PLIST_SRC?= ${.CURDIR}/../xlockmore/PLIST
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
USE_BUILDLINK3= YES
|
|
USE_LANGUAGES= c c++
|
|
USE_X11BASE= YES
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
XLOCK_SOUNDDIR= ${PREFIX}/lib/X11/xlock/sounds
|
|
XLOCK_MODULEDIR= ${PREFIX}/lib/X11/xlock/modules
|
|
|
|
.if !exists(${X11BASE}/lib/libXdpms.a)
|
|
XLOCK_NO_DPMS= YES
|
|
.endif
|
|
|
|
DEFINES+= -DDEF_MODULEPATH=\"${XLOCK_MODULEDIR}\"
|
|
CPPFLAGS+= ${DEFINES}
|
|
CXXFLAGS+= ${DEFINES}
|
|
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS+= --without-motif
|
|
CONFIGURE_ARGS+= --without-editres
|
|
CONFIGURE_ARGS+= --without-dtsaver
|
|
CONFIGURE_ARGS+= --without-rplay
|
|
CONFIGURE_ARGS+= --without-nas
|
|
CONFIGURE_ARGS+= --without-gtk
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
. if defined(USE_OSS)
|
|
. include "../../audio/oss/buildlink3.mk"
|
|
XLOCK_AUDIOPLAY?= ${BUILDLINK_PREFIX.oss}/bin/ossplay
|
|
. else
|
|
XLOCK_AUDIOPLAY?= /usr/bin/audioplay
|
|
. endif
|
|
CONFIGURE_ARGS+= --enable-def-play="${XLOCK_AUDIOPLAY}"
|
|
.endif
|
|
|
|
.if defined(XLOCK_NO_DPMS) && !empty(XLOCK_NO_DPMS:M[yY][eE][sS])
|
|
CONFIGURE_ARGS+= --without-dpms
|
|
.endif
|
|
|
|
# Set the complete paths to the sound files and set the default xlock
|
|
# mode/screensaver.
|
|
#
|
|
post-patch:
|
|
cd ${WRKSRC}/xlock; \
|
|
${MV} -f XLock.ad XLock.ad.presed; \
|
|
${SED} -e "s|/usr/lib/|${PREFIX}/lib/|g" \
|
|
XLock.ad.presed > XLock.ad; \
|
|
${RM} -f XLock.ad.presed
|
|
.if defined(XLOCK_DEFAULT_MODE) && !empty(XLOCK_DEFAULT_MODE)
|
|
cd ${WRKSRC}/xlock; \
|
|
${MV} -f XLock.ad XLock.ad.presed; \
|
|
${SED} -e "s|^\(XLock.mode:[ ]*\).*|\1${XLOCK_DEFAULT_MODE}|" \
|
|
XLock.ad.presed > XLock.ad; \
|
|
${RM} -f XLock.ad.presed
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${XLOCK_SOUNDDIR}
|
|
cd ${WRKSRC}/sounds; \
|
|
for file in *.au; do \
|
|
${INSTALL_DATA} $$file ${XLOCK_SOUNDDIR}; \
|
|
done
|