@@ -60,8 +60,8 @@ USE_LANGUAGES= c
60
60
USE_BSD_MAKEFILE= yes
61
61
BSD_MAKE_BUILD_DIR= ${WRKDIR}/pkgbuild
62
62
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 ":="!!!
65
65
INSTALL_TARGET= includes install
66
66
67
67
# 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
72
72
# XXX Normally ${WRKSRC} would be a canonical pathname, but it may not be if
73
73
# ${WRKOBJDIR} is set, but not to a canonical path.
74
74
#
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}!}
76
81
PKGCONFIG_OVERRIDE= ${BSD_MAKE_BUILD_DIR}/${CANONICAL_WRKSRC}/src/yajl.pc
77
82
PKGCONFIG_OVERRIDE_STAGE= post-build
78
83
79
- AUTO_MKDIRS= yes
84
+ AUTO_MKDIRS= yes
80
85
81
86
# totally automatic PLIST generation -- probably preferable?
82
87
#
@@ -88,33 +93,33 @@ GENERATE_PLIST+= cd ${DESTDIR}${PREFIX} && \
88
93
89
94
.include "../../mk/bsd.prefs.mk"
90
95
91
- PLIST_SUBST+= PREFIX=${PREFIX:Q }
96
+ PLIST_SUBST+= PREFIX=${PREFIX}
92
97
93
98
# N.B.: the following depend on PKGMAKECONF=/etc/mk.conf or the moral equivalent
94
99
# xxx they are also not needed if pkgsrc is properly patched to do this itself!
95
100
96
- PLIST_VARS+= mkdebug
101
+ PLIST_VARS+= mkdebug
97
102
.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
102
107
.endif
103
108
104
- PLIST_VARS+= mkdebuglib
109
+ PLIST_VARS+= mkdebuglib
105
110
.if ${MKDEBUGLIB:Uno} != "no"
106
111
PLIST.mkdebuglib= yes
107
- INSTALLATION_DIRS+= libdata/debug/${LOCALBASE }/lib
112
+ INSTALLATION_DIRS+= libdata/debug/${PREFIX }/lib
108
113
.endif
109
114
110
- PLIST_VARS+= mklint
115
+ PLIST_VARS+= mklint
111
116
.if ${MKLINT:Uno} != "no"
112
- PLIST.mklint= yes
117
+ PLIST.mklint= yes
113
118
.endif
114
119
115
- PLIST_VARS+= mkpic
120
+ PLIST_VARS+= mkpic
116
121
.if ${MKPIC:Uno} != "no"
117
- PLIST.mkpic= yes
122
+ PLIST.mkpic= yes
118
123
.endif
119
124
120
125
do-extract:
0 commit comments