Skip to content

Commit e413a14

Browse files
committed
minor bending to pkglint's (in)sanity
1 parent 37e789a commit e413a14

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

Makefile.pkgsrc

+21-16
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ USE_LANGUAGES= c
6060
USE_BSD_MAKEFILE= yes
6161
BSD_MAKE_BUILD_DIR= ${WRKDIR}/pkgbuild
6262
BUILD_MAKE_FLAGS= MAKEOBJDIRPREFIX=${BSD_MAKE_BUILD_DIR}
63-
TEST_MAKE_FLAGS= ${BUILD_MAKE_FLAGS}
64-
INSTALL_MAKE_FLAGS= ${BUILD_MAKE_FLAGS}
63+
TEST_MAKE_FLAGS= ${BUILD_MAKE_FLAGS} # pkglint complains here, but it's not ":="!!!
64+
INSTALL_MAKE_FLAGS= ${BUILD_MAKE_FLAGS} # pkglint complains here, but it's not ":="!!!
6565
INSTALL_TARGET= includes install
6666

6767
# xxx this use of ${VAR:!cmd!} is quite ugly to have to do, but because it is
@@ -72,11 +72,16 @@ INSTALL_TARGET= includes install
7272
# XXX Normally ${WRKSRC} would be a canonical pathname, but it may not be if
7373
# ${WRKOBJDIR} is set, but not to a canonical path.
7474
#
75-
CANONICAL_WRKSRC= ${:!cd ${WRKSRC} && ${PWD_CMD}!}
75+
# XXX the appearance of the first word "WRKSRC" in the value below is actually
76+
# unnecessary for make(1), but the makefile parser in pkglint cannot handle it
77+
# being missing! In other news the new pkglint(1) is both kinda stupid and
78+
# overly pedantic.
79+
#
80+
CANONICAL_WRKSRC= ${WRKSRC:!cd ${WRKSRC} && ${PWD_CMD}!}
7681
PKGCONFIG_OVERRIDE= ${BSD_MAKE_BUILD_DIR}/${CANONICAL_WRKSRC}/src/yajl.pc
7782
PKGCONFIG_OVERRIDE_STAGE= post-build
7883

79-
AUTO_MKDIRS= yes
84+
AUTO_MKDIRS= yes
8085

8186
# totally automatic PLIST generation -- probably preferable?
8287
#
@@ -88,33 +93,33 @@ GENERATE_PLIST+= cd ${DESTDIR}${PREFIX} && \
8893

8994
.include "../../mk/bsd.prefs.mk"
9095

91-
PLIST_SUBST+= PREFIX=${PREFIX:Q}
96+
PLIST_SUBST+= PREFIX=${PREFIX}
9297

9398
# N.B.: the following depend on PKGMAKECONF=/etc/mk.conf or the moral equivalent
9499
# xxx they are also not needed if pkgsrc is properly patched to do this itself!
95100

96-
PLIST_VARS+= mkdebug
101+
PLIST_VARS+= mkdebug
97102
.if ${MKDEBUG:Uno} != "no" && !defined(NODEBUG)
98-
PLIST.mkdebug= yes
99-
INSTALLATION_DIRS+= libdata/debug/${LOCALBASE}/bin
100-
INSTALLATION_DIRS+= libdata/debug/${LOCALBASE}/libexec
101-
INSTALLATION_DIRS+= libdata/debug/${LOCALBASE}/sbin
103+
PLIST.mkdebug= yes
104+
INSTALLATION_DIRS+= libdata/debug/${PREFIX}/bin
105+
INSTALLATION_DIRS+= libdata/debug/${PREFIX}/libexec
106+
INSTALLATION_DIRS+= libdata/debug/${PREFIX}/sbin
102107
.endif
103108

104-
PLIST_VARS+= mkdebuglib
109+
PLIST_VARS+= mkdebuglib
105110
.if ${MKDEBUGLIB:Uno} != "no"
106111
PLIST.mkdebuglib= yes
107-
INSTALLATION_DIRS+= libdata/debug/${LOCALBASE}/lib
112+
INSTALLATION_DIRS+= libdata/debug/${PREFIX}/lib
108113
.endif
109114

110-
PLIST_VARS+= mklint
115+
PLIST_VARS+= mklint
111116
.if ${MKLINT:Uno} != "no"
112-
PLIST.mklint= yes
117+
PLIST.mklint= yes
113118
.endif
114119

115-
PLIST_VARS+= mkpic
120+
PLIST_VARS+= mkpic
116121
.if ${MKPIC:Uno} != "no"
117-
PLIST.mkpic= yes
122+
PLIST.mkpic= yes
118123
.endif
119124

120125
do-extract:

0 commit comments

Comments
 (0)