| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.20 2020/08/31 18:12:29 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.21 2020/09/14 18:21:36 joerg Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= fvwm-themes-${THEM_VER} | | 4 | DISTNAME= fvwm-themes-${THEM_VER} |
5 | PKGREVISION= 16 | | 5 | PKGREVISION= 16 |
6 | CATEGORIES= wm | | 6 | CATEGORIES= wm |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fvwm-themes/} | | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fvwm-themes/} |
8 | EXTRACT_SUFX= .tar.bz2 | | 8 | EXTRACT_SUFX= .tar.bz2 |
9 | DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \ | | 9 | DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \ |
10 | fvwm-themes-extra-${THEM_VER}.tar.bz2 | | 10 | fvwm-themes-extra-${THEM_VER}.tar.bz2 |
11 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
12 | | | 12 | |
13 | MAINTAINER= gendalia@NetBSD.org | | 13 | MAINTAINER= gendalia@NetBSD.org |
14 | HOMEPAGE= http://fvwm-themes.sourceforge.net/ | | 14 | HOMEPAGE= http://fvwm-themes.sourceforge.net/ |
| @@ -57,33 +57,26 @@ SUBST_MESSAGE.fvwm-menuapp= Fixing FT_DA | | | @@ -57,33 +57,26 @@ SUBST_MESSAGE.fvwm-menuapp= Fixing FT_DA |
57 | SUBST_CLASSES+= gnome_session | | 57 | SUBST_CLASSES+= gnome_session |
58 | SUBST_FILES.gnome_session= configure.in | | 58 | SUBST_FILES.gnome_session= configure.in |
59 | SUBST_SED.gnome_session= -e 's|GNOME_SESSION=/usr/bin/gnome-session|GNOME_SESSION=${PREFIX}/bin/gnome-session|' | | 59 | SUBST_SED.gnome_session= -e 's|GNOME_SESSION=/usr/bin/gnome-session|GNOME_SESSION=${PREFIX}/bin/gnome-session|' |
60 | SUBST_STAGE.gnome_session= pre-configure | | 60 | SUBST_STAGE.gnome_session= pre-configure |
61 | SUBST_MESSAGE.gnome_session= gnome-session path fixed | | 61 | SUBST_MESSAGE.gnome_session= gnome-session path fixed |
62 | | | 62 | |
63 | #### 5 #### | | 63 | #### 5 #### |
64 | SUBST_CLASSES+= root_prefix | | 64 | SUBST_CLASSES+= root_prefix |
65 | SUBST_FILES.root_prefix= bin/fvwm-themes-config-destdir.in | | 65 | SUBST_FILES.root_prefix= bin/fvwm-themes-config-destdir.in |
66 | SUBST_SED.root_prefix= -e 's|\/^$$ROOT_PREFIX\/\/|\|\^${DESTDIR}\|\||' | | 66 | SUBST_SED.root_prefix= -e 's|\/^$$ROOT_PREFIX\/\/|\|\^${DESTDIR}\|\||' |
67 | SUBST_STAGE.root_prefix= pre-configure | | 67 | SUBST_STAGE.root_prefix= pre-configure |
68 | SUBST_MESSAGE.root_prefix= root_prefix tweak implementing | | 68 | SUBST_MESSAGE.root_prefix= root_prefix tweak implementing |
69 | | | 69 | |
70 | #### 6 #### | | | |
71 | SUBST_CLASSES+= theme-cfg | | | |
72 | SUBST_FILES.theme-cfg= ${DESTDIR}${PREFIX}/share/fvwm2/themes/current/theme.cfg | | | |
73 | SUBST_SED.theme-cfg= -e 's|${WRKDR}/.destdir||' | | | |
74 | SUBST_STAGE.theme-cfg= post-install | | | |
75 | SUBST_MESSAGE.theme-cfg= theme-cfg tweak implementing | | | |
76 | | | | |
77 | # Copied from bin/ and add -destdir onto its name. | | 70 | # Copied from bin/ and add -destdir onto its name. |
78 | # See following two targets. | | 71 | # See following two targets. |
79 | bin_SCRIPTS_DESTDIR= fvwm-themes-config fvwm-themes-menuapp | | 72 | bin_SCRIPTS_DESTDIR= fvwm-themes-config fvwm-themes-menuapp |
80 | | | 73 | |
81 | # Fake by making two different version of script under bin/ | | 74 | # Fake by making two different version of script under bin/ |
82 | pre-patch: | | 75 | pre-patch: |
83 | for i in ${bin_SCRIPTS_DESTDIR} ; do \ | | 76 | for i in ${bin_SCRIPTS_DESTDIR} ; do \ |
84 | ${CP} ${WRKSRC}/bin/$$i.in ${WRKSRC}/bin/$$i-destdir.in ;\ | | 77 | ${CP} ${WRKSRC}/bin/$$i.in ${WRKSRC}/bin/$$i-destdir.in ;\ |
85 | done | | 78 | done |
86 | | | 79 | |
87 | post-install: | | 80 | post-install: |
88 | ${DESTDIR}${PREFIX}/bin/fvwm-themes-config-destdir --site --install \ | | 81 | ${DESTDIR}${PREFIX}/bin/fvwm-themes-config-destdir --site --install \ |
89 | ${DISTDIR}/fvwm-themes-extra-${THEM_VER}.tar.bz2 | | 82 | ${DISTDIR}/fvwm-themes-extra-${THEM_VER}.tar.bz2 |