daad0f3d6c
INSTALL/DEINSTALL script creation within pkgsrc. If an INSTALL or DEINSTALL script is found in the package directory, it is automatically used as a template for the pkginstall-generated scripts. If instead, they should be used simply as the full scripts, then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC explicitly, e.g.: INSTALL_SRC= ${PKGDIR}/INSTALL DEINSTALL_SRC= # emtpy As part of the restructuring of the pkginstall framework internals, we now *always* generate temporary INSTALL or DEINSTALL scripts. By comparing these temporary scripts with minimal INSTALL/DEINSTALL scripts formed from only the base templates, we determine whether or not the INSTALL/DEINSTALL scripts are actually needed by the package (see the generate-install-scripts target in bsd.pkginstall.mk). In addition, more variables in the framework have been made private. The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are more sensible names given the very few exported variables in this framework. The only public variables relating to the templates are: INSTALL_SRC INSTALL_TEMPLATE DEINSTALL_SRC DEINSTALL_TEMPLATE HEADER_TEMPLATE The packages in pkgsrc have been modified to reflect the changes in the pkginstall framework.
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.61 2006/03/14 01:14:26 jlam Exp $
|
|
|
|
DISTNAME= xmcd-3.0.2
|
|
PKGREVISION= 9
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://www.ibiblio.org/tkan/download/xmcd/src/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.ibiblio.org/tkan/xmcd/
|
|
COMMENT= Motif CD player
|
|
|
|
PATCH_SITES= ${HOMEPAGE}
|
|
PATCHFILES= xmcd-3.0.2-proxyauth-patch
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
WRKSRC= ${WRKDIR}/xmcd-3.0
|
|
|
|
USE_IMAKE= yes
|
|
MAKE_ENV+= BATCH_BINDIR=${PREFIX}/bin
|
|
MAKE_ENV+= BATCH_LIBDIR=${PREFIX}/lib/X11
|
|
MAKE_ENV+= BATCH_MANDIR=${PREFIX}/man/man1
|
|
MAKE_ENV+= SHELL=${SH:Q}
|
|
|
|
INCOMPAT_CURSES= NetBSD-1.5*-* NetBSD-1.6[-_.]*-* NetBSD-1.6[A-S]*-*
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.if ${OPSYS} == "SunOS"
|
|
ARCH= Solaris
|
|
.else
|
|
ARCH= ${OPSYS}
|
|
.endif
|
|
|
|
ARCHBIN= ${PREFIX}/lib/X11/xmcd/bin-${ARCH}-${MACHINE_ARCH}
|
|
XMCDDIR= ${PREFIX}/lib/X11/xmcd
|
|
PLIST_SUBST+= ARCH=${ARCH:Q}
|
|
|
|
_SETUID_ROOT= ${ROOT_USER} ${ROOT_GROUP} 4711
|
|
SPECIAL_PERMS= ${ARCHBIN}/cda ${_SETUID_ROOT}
|
|
SPECIAL_PERMS+= ${ARCHBIN}/xmcd ${_SETUID_ROOT}
|
|
|
|
CFILES= common.cfg device.cfg wwwwarp.cfg
|
|
.for FILE in ${CFILES}
|
|
CONF_FILES+= ${XMCDDIR}/config/${FILE}.dist ${XMCDDIR}/config/${FILE}
|
|
.endfor
|
|
REQD_DIRS= ${XMCDDIR} ${XMCDDIR}/cdinfo ${XMCDDIR}/config ${XMCDDIR}/discog
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && \
|
|
for f in libdi_d/config.sh misc_d/start.sh install.sh; do \
|
|
${SED} -e "s/@MACHINE_ARCH@/${MACHINE_ARCH}/" $$f > $$f.new; \
|
|
${MV} -f $$f.new $$f; \
|
|
done
|
|
|
|
post-install:
|
|
if [ -n "${_STRIPFLAG_INSTALL}" ]; then \
|
|
for file in cda xmcd gobrowser; do \
|
|
strip ${ARCHBIN}/$$file; \
|
|
done; \
|
|
fi
|
|
|
|
.if ${OPSYS} != "SunOS"
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
.endif
|
|
.include "../../graphics/xpm/buildlink3.mk"
|
|
.include "../../mk/motif.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|