Changeset View
Changeset View
Standalone View
Standalone View
head/ports-mgmt/pkg-devel/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= pkg | PORTNAME= pkg | ||||
DISTVERSION= 1.14.99.1 | DISTVERSION= 1.14.99.1 | ||||
PORTREVISION= 1 | |||||
_PKG_VERSION= ${DISTVERSION} | _PKG_VERSION= ${DISTVERSION} | ||||
CATEGORIES= ports-mgmt | CATEGORIES= ports-mgmt | ||||
PKGNAMESUFFIX= -devel | PKGNAMESUFFIX= -devel | ||||
MAINTAINER= pkg@FreeBSD.org | MAINTAINER= pkg@FreeBSD.org | ||||
COMMENT= Package manager | COMMENT= Package manager | ||||
LICENSE= BSD2CLAUSE | LICENSE= BSD2CLAUSE | ||||
Show All 17 Lines | |||||
OPTIONS_DEFINE= DOCS | OPTIONS_DEFINE= DOCS | ||||
.if !exists(/usr/include/jail.h) | .if !exists(/usr/include/jail.h) | ||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-docs_pkg.8 | EXTRA_PATCHES= ${FILESDIR}/extra-patch-docs_pkg.8 | ||||
.endif | .endif | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if !exists(/usr/libdata/pkgconfig/liblzma.pc) | |||||
LIBLZMA_LIBS= -llzma | |||||
.else | |||||
LIBLZMA_PC!= ${EGREP} ^Libs /usr/libdata/pkgconfig/liblzma.pc | |||||
LIBLZMA_LIBS= ${LIBLZMA_PC:M-l*} | |||||
.endif | |||||
.if defined(WITH_PKG) | .if defined(WITH_PKG) | ||||
.if ${WITH_PKG} != devel | .if ${WITH_PKG} != devel | ||||
. if !defined(PACKAGE_BUILDING) | . if !defined(PACKAGE_BUILDING) | ||||
IGNORE= WITH_PKG is not defined to 'devel', this version is the devel one | IGNORE= WITH_PKG is not defined to 'devel', this version is the devel one | ||||
. endif | . endif | ||||
.else | .else | ||||
PKGNAMESUFFIX= | PKGNAMESUFFIX= | ||||
#define PKG_DEPENDS to nothing to avoid infinite loop looking for pkg :) | #define PKG_DEPENDS to nothing to avoid infinite loop looking for pkg :) | ||||
PKG_DEPENDS= | PKG_DEPENDS= | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.undef INSTALLS_DEPENDS | .undef INSTALLS_DEPENDS | ||||
.if !exists(${LOCALBASE}/sbin/pkg) && !defined(CROSS_TOOLCHAIN) | .if !exists(${LOCALBASE}/sbin/pkg) && !defined(CROSS_TOOLCHAIN) | ||||
PKG_BIN= ${WRKSRC}/src/pkg-static | PKG_BIN= ${WRKSRC}/src/pkg-static | ||||
.endif | .endif | ||||
post-patch: | |||||
${REINPLACE_CMD} -e "s|-llzma|${LIBLZMA_LIBS}|g" ${WRKSRC}/auto.def \ | |||||
${WRKSRC}/src/Makefile.autosetup ${WRKSRC}/tests/Makefile.autosetup | |||||
post-install: | post-install: | ||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg | @${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}/NEWS | ${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}/NEWS | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |