1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00

128 lines
4.1 KiB
Makefile
Raw Normal View History

# Created by: Lin, Cheng-Tao <b89605222@ntu.edu.tw>
# $FreeBSD$
PORTNAME= lxpanel
PORTVERSION= 0.6.2
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= SF/lxde/LXPanel%20%28desktop%20panel%29/LXPanel%20${PORTVERSION}/
These ports are no longer used or cared for. Horia Racoviceanu <horia@racoviceanu.com> wishes to maintain these ports with my help. misc/lxde-common - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com misc/xdg-menu - Change Makefile header, use my name and @FreeBSD.org email - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change Desktop entry file - Add DOCS Option - Break lines around 80 characters - Change pkg-plist, remove mtree sysutils/lxinput - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com sysutils/lxtask - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Remove TODO from DOCS sysutils/lxterminal - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change pkg-plist, add missing x11/florence - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:bzip2 instead of USE_BZIP2=yes and not needed desktop-file-utils - Remove not needed MAN1 from Makefile x11/libfm - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:xz instead of USE_XZ=yes - Change pkg-plist, remove mtree x11/lxde-meta - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com x11/lxmenu-data - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change pkg-plist, remove mtree x11/lxpanel - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Strip libraries - Change pkg-plist, add missing x11/menu-cache - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - USES pathfix instead of USE_GNOME gnomehack - Strip library x11-fm/pcmanfm - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:xz instead of USE_XZ=yes - Change pkg-plist, remove mtree, add missing x11-themes/lxde-icon-theme - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:bzip2 instead of USE_BZIP2=yes - Change pkg-plist, remove mtree x11-wm/lxmed - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com x11-wm/lxsession - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change pkg-plist, add missing x11-wm/obapps - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Add DOCS Option - Change Desktop entry file x11-wm/obmenu - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change Desktop entry file - Break lines around 80 characters
2014-04-21 20:27:38 +00:00
MAINTAINER= horia@racoviceanu.com
COMMENT= Lightweight X11 desktop panel
LICENSE= GPLv2 MIT
LICENSE_COMB= dual
LIB_DEPENDS= libmenu-cache.so:${PORTSDIR}/x11/menu-cache \
libsysinfo.so:${PORTSDIR}/devel/libsysinfo
RUN_DEPENDS= ${LOCALBASE}/share/desktop-directories/lxde-audio-video.directory:${PORTSDIR}/x11/lxmenu-data \
xmessage:${PORTSDIR}/x11/xmessage
USE_AUTOTOOLS= automake:env
USE_CSTD= gnu89
USE_GNOME= gtk20 libwnck intltool
USE_XORG= x11 xmu
USES= gmake pathfix pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix="${PREFIX}" \
--with-plugins=netstatus,volume,volumealsa,deskno,batt,kbled,xkb,thermal,cpu,cpufreq,monitors,wnckpager \
--with-x \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CFLAGS+= -I${WRKSRC}
SUB_FILES= pkg-message
These ports are no longer used or cared for. Horia Racoviceanu <horia@racoviceanu.com> wishes to maintain these ports with my help. misc/lxde-common - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com misc/xdg-menu - Change Makefile header, use my name and @FreeBSD.org email - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change Desktop entry file - Add DOCS Option - Break lines around 80 characters - Change pkg-plist, remove mtree sysutils/lxinput - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com sysutils/lxtask - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Remove TODO from DOCS sysutils/lxterminal - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change pkg-plist, add missing x11/florence - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:bzip2 instead of USE_BZIP2=yes and not needed desktop-file-utils - Remove not needed MAN1 from Makefile x11/libfm - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:xz instead of USE_XZ=yes - Change pkg-plist, remove mtree x11/lxde-meta - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com x11/lxmenu-data - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change pkg-plist, remove mtree x11/lxpanel - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Strip libraries - Change pkg-plist, add missing x11/menu-cache - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - USES pathfix instead of USE_GNOME gnomehack - Strip library x11-fm/pcmanfm - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:xz instead of USE_XZ=yes - Change pkg-plist, remove mtree, add missing x11-themes/lxde-icon-theme - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:bzip2 instead of USE_BZIP2=yes - Change pkg-plist, remove mtree x11-wm/lxmed - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com x11-wm/lxsession - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change pkg-plist, add missing x11-wm/obapps - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Add DOCS Option - Change Desktop entry file x11-wm/obmenu - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change Desktop entry file - Break lines around 80 characters
2014-04-21 20:27:38 +00:00
PORTDOCS= AUTHORS README
OPTIONS_DEFINE= ALSA DOCS NLS
OPTIONS_SUB= yes
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_CONFIGURE_ENABLE= alsa
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MALSA}
PLIST_SUB+= VOLUME="@comment "
.else
PLIST_SUB+= VOLUME=""
.endif
post-patch:
@${REINPLACE_CMD} -e '/g_thread_create/ \
s|.*| g_thread_new("tf", (GThreadFunc)thread_func,\
thread_data);|' \
${WRKSRC}/src/gtk-run.c
@${REINPLACE_CMD} -e '/g_thread_init/d' \
${WRKSRC}/src/panel.c
@${REINPLACE_CMD} -e 's|structure_size :|.structure_size =|; \
s|structure_version :|.structure_version =|' \
${WRKSRC}/src/plugin.h
@${REINPLACE_CMD} -e 's| type *:| .type =|; \
s| name *:| .name =|; \
s| version *:| .version =|; \
s| description *:| .description =|; \
s| constructor *:| .constructor =|; \
s| destructor *:| .destructor =|; \
s| config *:| .config =|; \
s| save *:| .save =|; \
s| panel_configuration_changed *:| \
.panel_configuration_changed =|; \
s| fname:| .fname =|; \
s| count:| .count =|; \
s| expand_available :| .expand_available =|; \
s| expand_default :| .expand_default =|; \
s| one_per_system :| .one_per_system =|; \
s| not_unloadable :| .not_unloadable =|' \
${WRKSRC}/src/plugins/batt/batt.c \
${WRKSRC}/src/plugins/cpu*/cpu*.c \
${WRKSRC}/src/plugins/deskno/deskno.c \
${WRKSRC}/src/plugins/kbled/kbled.c \
${WRKSRC}/src/plugins/monitors/monitors.c \
${WRKSRC}/src/plugins/netstatus/netstatus.c \
${WRKSRC}/src/plugins/thermal/thermal.c \
${WRKSRC}/src/plugins/wnckpager/wnckpager.c \
${WRKSRC}/src/plugins/xkb/xkb-plugin.c \
${WRKSRC}/src/plugins/volume*/volume*.c \
${WRKSRC}/src/plugins/*.c
@${REINPLACE_CMD} -e '/gdk_color_parse(b/ s|;||; \
/gdk_color_parse(b/{p;s/.*/ ;/;}' \
${WRKSRC}/src/plugins/batt/batt.c
@${REINPLACE_CMD} -e 's|/sys|/compat/linux&|' \
${WRKSRC}/src/plugins/batt/batt_sys.h
@${REINPLACE_CMD} -e 's|/proc|/compat/linux&|' \
${WRKSRC}/src/plugins/cpu/cpu.c \
${WRKSRC}/src/plugins/monitors/monitors.c \
${WRKSRC}/src/plugins/thermal/thermal.c
@${REINPLACE_CMD} -e 's|%lld|%lu|g; s|bytes >=|bytes >|' \
${WRKSRC}/src/plugins/netstatus/netstatus-dialog.c
@${REINPLACE_CMD} -e '/NETSTATUS_ERROR, code/ s|error_message|"%s", &|' \
${WRKSRC}/src/plugins/netstatus/netstatus-iface.c
@${REINPLACE_CMD} -e '611s/signal_strength)/*&/' \
${WRKSRC}/src/plugins/netstatus/netstatus-sysdeps.c
@${REINPLACE_CMD} -e 's|linux|sys|' \
${WRKSRC}/src/plugins/volume/volume-impl.c
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|po man|man|' \
${WRKSRC}/Makefile.in
.endif
post-install:
.for l in netstatus deskno batt kbled xkb thermal cpu cpufreq monitors wnckpager
These ports are no longer used or cared for. Horia Racoviceanu <horia@racoviceanu.com> wishes to maintain these ports with my help. misc/lxde-common - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com misc/xdg-menu - Change Makefile header, use my name and @FreeBSD.org email - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change Desktop entry file - Add DOCS Option - Break lines around 80 characters - Change pkg-plist, remove mtree sysutils/lxinput - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com sysutils/lxtask - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Remove TODO from DOCS sysutils/lxterminal - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change pkg-plist, add missing x11/florence - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:bzip2 instead of USE_BZIP2=yes and not needed desktop-file-utils - Remove not needed MAN1 from Makefile x11/libfm - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:xz instead of USE_XZ=yes - Change pkg-plist, remove mtree x11/lxde-meta - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com x11/lxmenu-data - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change pkg-plist, remove mtree x11/lxpanel - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Strip libraries - Change pkg-plist, add missing x11/menu-cache - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - USES pathfix instead of USE_GNOME gnomehack - Strip library x11-fm/pcmanfm - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:xz instead of USE_XZ=yes - Change pkg-plist, remove mtree, add missing x11-themes/lxde-icon-theme - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Use tar:bzip2 instead of USE_BZIP2=yes - Change pkg-plist, remove mtree x11-wm/lxmed - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com x11-wm/lxsession - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change pkg-plist, add missing x11-wm/obapps - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Add DOCS Option - Change Desktop entry file x11-wm/obmenu - Bump PORTREVISION - Pass maintainership to horia@racoviceanu.com - Change Desktop entry file - Break lines around 80 characters
2014-04-21 20:27:38 +00:00
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lxpanel/plugins/${l}.so
.endfor
.if ${PORT_OPTIONS:MALSA}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lxpanel/plugins/volumealsa.so
.else
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lxpanel/plugins/volume.so
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>