dc9594e09d
automatically detects whether we want the pkginstall machinery to be used by the package Makefile.
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.47 2005/12/29 06:22:18 jlam Exp $
|
|
.include "Makefile.common"
|
|
|
|
GKRELLM_PKGBASE= gkrellm
|
|
WRKSRC= ${GKRELLM_SRCDIR}
|
|
|
|
COMMENT= GTK2 based system monitor
|
|
|
|
DEPENDS+= gkrellm-share-${GKRELLM_VERSION}:../../sysutils/gkrellm-share
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# NetBSD 3.99.1 and above don't have to be installed setgid.
|
|
.if (${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || \
|
|
(${OPSYS} == "NetBSD" && (!empty(OS_VERSION:M[123]*) && empty(OS_VERSION:M3.99.*))))
|
|
SPECIAL_PERMS+= ${PREFIX}/bin/gkrellm ${ROOT_USER} kmem 2711
|
|
.endif
|
|
|
|
NOT_FOR_PLATFORM= IRIX-*-*
|
|
|
|
.include "options.mk"
|
|
|
|
MAKE_ENV+= MODULES=src LINK_FLAGS=${EXPORT_SYMBOLS_LDFLAGS:Q}
|
|
MAKE_ENV+= BINOWNER=${BINOWN:Q} BINGROUP=${BINGRP:Q}
|
|
MAKE_ENV+= SSL_TYPE=${GKRELLM_SSL_TYPE:Q}
|
|
MAKE_ENV+= PKG_INCLUDE=-I${BUILDLINK_PREFIX.${GKRELLM_SSL_TYPE}}/include
|
|
MAKE_ENV+= PKG_LIBS="-L${BUILDLINK_PREFIX.${GKRELLM_SSL_TYPE}}/lib -Wl,-R${BUILDLINK_PREFIX.${GKRELLM_SSL_TYPE}}/lib"
|
|
|
|
SUBST_STAGE.gkprefix= post-patch
|
|
SUBST_FILES.gkprefix= src/gkrellm.h
|
|
SUBST_SED.gkprefix= -e '/SYSTEM_/{s!/usr!${PREFIX}!;}'
|
|
SUBST_CLASSES+= gkprefix
|
|
|
|
REQD_DIRS= lib/gkrellm2/plugins lib/gkrellm2 include/gkrellm2
|
|
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|