rsadowski 6ecf5561f1 Fix build with CMake 3.23
- Use CFLAGS and CXXFLAGS instead of  CMAKE_CXX_FLAGS and CMAKE_C_FLAGS.
- Use MODCMAKE_LDFLAGS instead of CMAKE_EXE_LINKER_FLAGS
- Fix broken builds with CMake 3.23
2022-05-28 06:19:58 +00:00

38 lines
724 B
Makefile

COMMENT = host software for the HackRF One SDR
V = 2018.01.1
REVISION = 0
DISTNAME = hackrf-$V
SHARED_LIBS += hackrf 0.0 # 0.5
CATEGORIES = comms
HOMEPAGE = https://greatscottgadgets.com/hackrf/
MAINTAINER = Anthony J. Bentley <anthony@anjbe.name>
# GPLv2+ (tools), 3-clause BSD (library)
PERMIT_PACKAGE = Yes
WANTLIB += c fftw3f m pthread usb-1.0
MASTER_SITES = https://github.com/mossmann/hackrf/releases/download/v$V/
EXTRACT_SUFX = .tar.xz
COMPILER = base-clang ports-gcc
MODULES = devel/cmake
LIB_DEPENDS = devel/libusb1 \
math/fftw3,float
CFLAGS += -I${LOCALBASE}/include
MODCMAKE_LDFLAGS = -L${LOCALBASE}/lib
NO_TEST = Yes
WRKSRC = ${WRKDIST}/host
.include <bsd.port.mk>