and in turn make the debug package actually useful as the current one contains no symbols; this is due to CFLAGS containing DEBUG which passes "-g" as per DEBUG_PACKAGES. Upstream should tweak their config.mk to support proper variable usage without downstream having to patch makefiles. Fix DESCR while here. OK sthen
41 lines
1003 B
Makefile
41 lines
1003 B
Makefile
# $OpenBSD: Makefile,v 1.2 2021/03/07 22:26:27 kn Exp $
|
|
|
|
COMMENT = contextual radial menu for X11
|
|
|
|
GH_ACCOUNT = phillbush
|
|
GH_PROJECT = pmenu
|
|
GH_TAGNAME = v2.2.0
|
|
REVISION = 0
|
|
|
|
CATEGORIES = x11
|
|
|
|
MAINTAINER = Jerome Kasper <neon.king.fr@gmail.com>
|
|
|
|
HOMEPAGE = https://github.com/phillbush/pmenu
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE =Yes
|
|
|
|
WANTLIB += Imlib2 X11 Xext Xft Xinerama Xrender c fontconfig m
|
|
|
|
LIB_DEPENDS = graphics/imlib2
|
|
|
|
DEBUG_PACKAGES =${BUILD_PACKAGES}
|
|
|
|
NO_TEST = Yes
|
|
|
|
MAKE_FLAGS = FREETYPEINC=${X11BASE}/include/freetype2 \
|
|
MANPREFIX=${PREFIX}/man
|
|
|
|
# ${WRKSRC}/config.mk ignores the environment, i.e. it should append to
|
|
# (`+=') not set (`=') variables.
|
|
# XXX CPPFLAGS is empty added to the end; abuse it to avoid patches and pass
|
|
# CFLAGS such that DEBUG is honoured as required for DEBUG_PACKAGES to work.
|
|
MAKE_FLAGS += CPPFLAGS='${CFLAGS}'
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pmenu
|
|
${INSTALL_DATA} ${WRKSRC}/pmenu.sh ${PREFIX}/share/examples/pmenu/
|
|
|
|
.include <bsd.port.mk>
|