pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/renderproto Fixed pkglint warnings. Fixed use of $...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b57d76a4d486
branches: trunk
changeset: 514693:b57d76a4d486
user: rillig <rillig%pkgsrc.org@localhost>
date: Fri Jun 16 14:35:54 2006 +0000
description:
Fixed pkglint warnings. Fixed use of ${LN} -sf, which does not do the
expected thing on Solaris.
diffstat:
x11/renderproto/buildlink3.mk | 7 +++----
x11/renderproto/builtin.mk | 23 +++++++++++++----------
2 files changed, 16 insertions(+), 14 deletions(-)
diffs (78 lines):
diff -r aa236e752a44 -r b57d76a4d486 x11/renderproto/buildlink3.mk
--- a/x11/renderproto/buildlink3.mk Fri Jun 16 14:35:27 2006 +0000
+++ b/x11/renderproto/buildlink3.mk Fri Jun 16 14:35:54 2006 +0000
@@ -1,6 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/04/18 17:16:06 reed Exp $
-
-BUILDLINK_DEPMETHOD.renderproto?= build
+# $NetBSD: buildlink3.mk,v 1.2 2006/06/16 14:35:54 rillig Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
RENDERPROTO_BUILDLINK3_MK:= ${RENDERPROTO_BUILDLINK3_MK}+
@@ -15,6 +13,7 @@
.if !empty(RENDERPROTO_BUILDLINK3_MK:M+)
BUILDLINK_API_DEPENDS.renderproto+= renderproto>=0.9.1
BUILDLINK_PKGSRCDIR.renderproto?= ../../x11/renderproto
+BUILDLINK_DEPMETHOD.renderproto?= build
.endif # RENDERPROTO_BUILDLINK3_MK
-BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff -r aa236e752a44 -r b57d76a4d486 x11/renderproto/builtin.mk
--- a/x11/renderproto/builtin.mk Fri Jun 16 14:35:27 2006 +0000
+++ b/x11/renderproto/builtin.mk Fri Jun 16 14:35:54 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.2 2006/04/19 12:25:15 reed Exp $
+# $NetBSD: builtin.mk,v 1.3 2006/06/16 14:35:54 rillig Exp $
BUILTIN_PKG:= renderproto
@@ -17,12 +17,12 @@
# Here, we skip checking whether the files are under ${LOCALBASE} since
# we'll consider this X11 package to be built-in even if it's a part
# of one of the pkgsrc-installed X11 distributions.
-#
+#
. if empty(H_RENDER:M__nonexistent__)
IS_BUILTIN.renderproto= yes
. endif
.endif
-MAKEVARS+= IS_BUILTIN.renderproto
+MAKEVARS+= IS_BUILTIN.renderproto
###
### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
@@ -52,10 +52,10 @@
. if defined(BUILTIN_PKG.renderproto) && \
!empty(IS_BUILTIN.renderproto:M[yY][eE][sS])
USE_BUILTIN.renderproto= yes
-. for _dep_ in ${BUILDLINK_API_DEPENDS.renderproto}
+. for dep in ${BUILDLINK_API_DEPENDS.renderproto}
. if !empty(USE_BUILTIN.renderproto:M[yY][eE][sS])
USE_BUILTIN.renderproto!= \
- if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.renderproto:Q}; then \
+ if ${PKG_ADMIN} pmatch ${dep:Q} ${BUILTIN_PKG.renderproto:Q}; then \
${ECHO} yes; \
else \
${ECHO} no; \
@@ -92,12 +92,15 @@
# this is temporary and can be removed once not used
BUILDLINK_TARGETS+= render-symlink-pc
+.PHONY: render-symlink-pc
render-symlink-pc:
- src=${BUILDLINK_PREFIX.renderproto}/lib/pkgconfig/renderproto.pc \
- dst=${BUILDLINK_DIR}/lib/pkgconfig/render.pc; \
- ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \
- if ${TEST} -f $${src}; then \
- ${LN} -sf $${src} $${dst}; \
+ set -e; \
+ src=${BUILDLINK_PREFIX.renderproto}/lib/pkgconfig/renderproto.pc; \
+ dst=${BUILDLINK_DIR}/lib/pkgconfig/render.pc; \
+ ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \
+ if ${TEST} -f "$$src"; then \
+ ${RM} -f "$$dst"; \
+ ${LN} -sf "$$src" "$$dst"; \
fi
.endif # CHECK_BUILTIN.renderproto
Home |
Main Index |
Thread Index |
Old Index