# Created by: Tobias Roth # $FreeBSD$ PORTNAME= gkx86info2 PORTVERSION= 0.0.2 PORTREVISION= 8 CATEGORIES= misc MASTER_SITES= http://anchois.free.fr/ \ http://depot.fsck.ch/mirror/distfiles/ MAINTAINER= ports@FreeBSD.org COMMENT= GKrellM2 plugin that simply prints the current clock speed BUILD_DEPENDS= ${LOCALBASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2 RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2 ONLY_FOR_ARCHS= i386 amd64 USES= pkgconfig USE_GNOME= gtk20 WRKSRC= ${WRKDIR}/gkx86info${PORTVERSION} PLUGINDIR= ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins OPTIONS_DEFINE= DOCS do-build: @cd ${WRKSRC} && eval ${CC} ${CFLAGS} -fPIC -o MHz.o -c MHz.c @cd ${WRKSRC} && eval ${CC} ${CFLAGS} -fPIC \ `pkg-config gtk+-2.0 --cflags` -c gkx86info.c @cd ${WRKSRC} && eval ${CC} ${CFLAGS} -shared \ -o ${PORTNAME}.so MHz.o gkx86info.o do-install: @${MKDIR} ${PLUGINDIR} ${INSTALL_LIB} ${WRKSRC}/${PORTNAME}.so ${PLUGINDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include