pkgsrc/x11/asclock-gtk/Makefile
agc 78748d628a Instead of the clunky SHOW_PKG_PREFIX, introduce an EVAL_PREFIX definition,
which takes entries of the format <make-definition-name>=<pkgname>. This
has not been added to MAKEFLAGS because (a) premature optimisation is the
root of all evil, and (b) because the .for loop used to implement this
shows the wrong results when multiple prefices are evaluated.

Modify all the package Makefiles to use EVAL_PREFIX, thereby simplifying
them considerably.

ALso simplify the logic to calculate the prefix as well.
2000-07-15 20:39:13 +00:00

40 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2000/07/15 20:39:25 agc Exp $
#
DISTNAME= asclock-gtk-2.1.10beta
PKGNAME= asclock-gtk-2.1.10
WRKSRC= ${WRKDIR}/asclock-gtk
CATEGORIES= x11
MASTER_SITES= http://www.asclock.org/tar/
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://www.asclock.org/
DEPENDS+= gtk+-1.2.*:../../x11/gtk
USE_X11BASE= yes
PLIST_SRC= ${PKGDIR}/PLIST \
${PKGDIR}/PLIST.themes
ALL_TARGET= asclock
EVAL_PREFIX+= GTKDIR=gtk+
MAKE_ENV+= CONFIG_PATH="${GTKDIR}/bin/" # for gtk-config
pre-configure:
cd ${WRKSRC}; ${LN} -sf themes/classic default_theme
pre-install:
${RM} -f ${WRKSRC}/themes/Freeamp/Makefile*
${RM} -rf ${WRKSRC}/themes/themes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/asclock ${PREFIX}/bin/asclock-gtk
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/asclock-gtk
${INSTALL_DATA} ${WRKSRC}/README.THEMES ${PREFIX}/share/doc/asclock-gtk
${MKDIR} ${PREFIX}/share/asclock-gtk
${CP} -R ${WRKSRC}/themes/* ${PREFIX}/share/asclock-gtk
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/asclock-gtk
.include "../../mk/bsd.pkg.mk"