Changeset View
Changeset View
Standalone View
Standalone View
head/ports-mgmt/pkg/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= pkg | PORTNAME= pkg | ||||
DISTVERSION= 1.14.4 | DISTVERSION= 1.14.4 | ||||
PORTREVISION= 1 | |||||
_PKG_VERSION= ${DISTVERSION} | _PKG_VERSION= ${DISTVERSION} | ||||
CATEGORIES= ports-mgmt | CATEGORIES= ports-mgmt | ||||
#MASTER_SITES= \ | #MASTER_SITES= \ | ||||
# http://files.etoilebsd.net/${PORTNAME}/ \ | # http://files.etoilebsd.net/${PORTNAME}/ \ | ||||
# LOCAL/portmgr \ | # LOCAL/portmgr \ | ||||
# http://mirror.shatow.net/freebsd/${PORTNAME}/ \ | # http://mirror.shatow.net/freebsd/${PORTNAME}/ \ | ||||
MAINTAINER= pkg@FreeBSD.org | MAINTAINER= pkg@FreeBSD.org | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | pre-everything:: | ||||
${ECHO_CMD} " 2) Convert your package database by running pkg2ng"; \ | ${ECHO_CMD} " 2) Convert your package database by running pkg2ng"; \ | ||||
${ECHO_CMD} ""; \ | ${ECHO_CMD} ""; \ | ||||
exit 1 | exit 1 | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.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 | |||||
#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= | ||||
.undef INSTALLS_DEPENDS | .undef INSTALLS_DEPENDS | ||||
# Use the internal pkg instead, generally, unless this is a cross-build, | # Use the internal pkg instead, generally, unless this is a cross-build, | ||||
# in which case that won't work. Hope for the best then. | # in which case that won't work. Hope for the best then. | ||||
.if !defined(CROSS_TOOLCHAIN) | .if !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 | ||||
post-install-DOCS-on: | post-install-DOCS-on: | ||||
@${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> |