Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+10 -20
View File
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.4 2015/09/02 20:56:23 mef Exp $
# $NetBSD: Makefile,v 1.9 2016/09/17 22:13:26 wiedi Exp $
DISTNAME= rtl-sdr-0.5.3
PKGREVISION= 2
CATEGORIES= ham
MASTER_SITES= ${MASTER_SITE_GITHUB:=steve-m/}
GITHUB_PROJECT= librtlsdr
@@ -12,30 +13,19 @@ COMMENT= Turns your Realtek RTL2832 based DVB dongle into a SDR receiver
LICENSE= gnu-gpl-v2
USE_LANGUAGES+= c c++
USE_TOOLS+= gmake
USE_TOOLS+= gmake pkg-config
USE_CMAKE= yes
AUTO_MKDIRS= yes
CONFIGURE_DIRS=build
BUILD_DIRS=${CONFIGURE_DIRS}
CMAKE_ARG_PATH=..
## CMake Error at CMakeLists.txt:69 (message):
## LibUSB 1.0 required to compile rtl-sdr
CMAKE_ARGS+= -DLIBUSB_INCLUDE_DIR=${PREFIX}/include/libusb-1.0
CMAKE_ARG_PATH= ../
CONFIGURE_DIRS= build
PKGCONFIG_OVERRIDE+= librtlsdr.pc.in
SUBST_CLASSES+= destdir
SUBST_MESSAGE.destdir= Replace install destination to ${DESTDIR}
SUBST_FILES.destdir= build/cmake_install.cmake
SUBST_STAGE.destdir= pre-install
SUBST_SED.destdir= -e 's|\$${CMAKE_INSTALL_PREFIX}|${DESTDIR}\$${CMAKE_INSTALL_PREFIX}|'
LDFLAGS.SunOS+= -lsocket -lnsl
pre-configure:
(cd ${WRKSRC}; ${MKDIR} build;)
do-build:
(cd ${WRKSRC}/build; ${GMAKE})
do-install:
(cd ${WRKSRC}/build; ${GMAKE} install)
${MKDIR} ${WRKSRC}/build
.include "../../devel/libusb1/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"