[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / ham / hackrf

File: [cvs.NetBSD.org] / pkgsrc / ham / hackrf / Makefile (download)

Revision 1.1, Mon Oct 13 13:46:23 2014 UTC (6 years, 6 months ago) by mef
Branch: MAIN
CVS Tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4

Import hackrf-2014.08.1 as ham/hackrf.

An open source hardware project to build a Software Defined Radio
(SDR) peripheral.
HackRF was designed to be the most widely useful SDR peripheral that
can be manufactured at a low cost. See
  http://greatscottgadgets.com/hackrf/

# $NetBSD: Makefile,v 1.1 2014/10/13 13:46:23 mef Exp $

DISTNAME=		hackrf-2014.08.1
CATEGORIES=		ham
MASTER_SITES=		http://sourceforge.net/projects/hackrf/files/
EXTRACT_SUFX=		.tar.xz

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://greatscottgadgets.com/hackrf/
#OMEPAGE=		https://www.kickstarter.com/projects/mossmann/hackrf-an-open-source-sdr-platform
COMMENT=		HackRF, an open source SDR hardware platform
LICENSE=		gnu-gpl-v2

USE_LANGUAGES=		c c++
USE_TOOLS=		cmake tar
USE_CMAKE=		yes

# Suppress warning for developer
CMAKE_ARGS+=		-Wno-dev
CMAKE_ARGS+=		-DLIBUSB_INCLUDE_DIR=${PREFIX}/include/libusb-1.0

CONFIGURE_DIRS=		host
AUTO_MKDIRS=		yes

REPLACE_PYTHON+=	hardware/test/si5351-configure.py
REPLACE_PYTHON+=	firmware/tools/check_clock.py
REPLACE_PYTHON+=	firmware/tools/dump_cgu.py
REPLACE_PYTHON+=	hardware/lollipop/lollipop_logic.py

# suppress warning: "executable bit is set on non-executable file"
pre-patch:
	(cd ${WRKSRC}; find firmware* -type f -perm  0755 | xargs chmod 0644)

post-install:
#	(${MKDIR} ${DESTDIR}${PREFIX}/share/hackerRF )
	(cd ${WRKSRC}; tar cf - \
	COPYING  RELEASENOTES Readme.md TRADEMARK doc firmware firmware-bin hardware |\
	(cd ${DESTDIR}${PREFIX}/share/hackerRF ; tar xf - ) )

.include	"../../lang/python/application.mk"
.include	"../../devel/libusb1/buildlink3.mk"
.include	"../../mk/bsd.pkg.mk"