summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/Makefile.inc
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2011-05-17 19:11:47 +0000
committerflz <flz@FreeBSD.org>2011-05-17 19:11:47 +0000
commita67c814c56ba88655fb9dc06c639c3ce44a41d3d (patch)
tree09d73e61361d4bd08e4cbf43041da192c242cc1c /usr.sbin/pkg_install/Makefile.inc
parent7fd3026923990d3b14f6b6440502163be85b611b (diff)
downloadFreeBSD-src-a67c814c56ba88655fb9dc06c639c3ce44a41d3d.zip
FreeBSD-src-a67c814c56ba88655fb9dc06c639c3ce44a41d3d.tar.gz
Backout libinstall.a -> libpkg commit.
Discussed with: erwin, brooks, bapt
Diffstat (limited to 'usr.sbin/pkg_install/Makefile.inc')
-rw-r--r--usr.sbin/pkg_install/Makefile.inc13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/Makefile.inc b/usr.sbin/pkg_install/Makefile.inc
index d929f24..2fa20aa 100644
--- a/usr.sbin/pkg_install/Makefile.inc
+++ b/usr.sbin/pkg_install/Makefile.inc
@@ -2,11 +2,16 @@
.include <bsd.own.mk>
-CFLAGS+= -DPKG_INSTALL_VERSION=20101012
-CFLAGS+= -DYES_I_KNOW_THE_API_IS_RUBBISH_AND_IS_DOOMED_TO_CHANGE
+LIBINSTALL= ${.OBJDIR}/../lib/libinstall.a
-DPADD+= ${LIBPKG}
-LDADD+= -lpkg
+DPADD+= ${LIBUTIL}
+LDADD+= -lutil
+
+.if ${MK_OPENSSL} != "no" && \
+ defined(LDADD) && ${LDADD:M-lfetch} != ""
+DPADD+= ${LIBSSL} ${LIBCRYPTO}
+LDADD+= -lssl -lcrypto
+.endif
# Inherit BINDIR from one level up.
.include "../Makefile.inc"
OpenPOWER on IntegriCloud