openbsd-ports/x11/matchbox/matchbox-panel/Makefile
2008-04-30 04:22:55 +00:00

35 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2008/04/30 04:22:55 sturm Exp $
# XXX hardcoded apm list
COMMENT= window bar for holding application launchers
DISTNAME= matchbox-panel-0.9.3
PKGNAME= ${DISTNAME}p1
MASTER_SITES= ${MASTER_SITES_MATCHBOX:=matchbox-panel/0.9/}
LIB_DEPENDS= mb.>=1::x11/matchbox/libmatchbox
RUN_DEPENDS= :matchbox-common-*:x11/matchbox/matchbox-common \
:desktop-file-utils-*:devel/desktop-file-utils
MODULES= devel/gettext
WANTLIB= X11 Xext Xft Xrender c fontconfig freetype m z \
glib-2.0.>=600.0 gmodule-2.0.>=600.0 gobject-2.0.>=600.0 jpeg \
pango-1.0 pangoft2-1.0 pangoxft-1.0 png Xau Xdmcp expat
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=--enable-nls
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
HAVEGETTEXT="yes" \
INTLIBS="-liconv -lintl" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.mk>
# We use "macppc" and not "powerpc" on purpose here ; i.e. apm(4) needed
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm" \
|| ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "macppc" \
|| ${MACHINE_ARCH} == "sparc"
PKG_ARGS+=-DAPM=1
.else
PKG_ARGS+=-DAPM=0
.endif