Skip to content

Commit

Permalink
Setup Xfce build.
Browse files Browse the repository at this point in the history
Uses autotools and xfce dev tools. Based on xfce terminal and work done by the Xfce team.
  • Loading branch information
SKefalidis committed May 4, 2022
1 parent 433022d commit 727762a
Show file tree
Hide file tree
Showing 53 changed files with 8,761 additions and 34 deletions.
68 changes: 55 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,59 @@
# Object files
# Ignore Autotools Output #
###########################
autom4te.cache/
.autotools
aclocal.m4
config.guess
config.h
config.h.in
config.h.in~
config.log
config.status
config.sub
configure
depcomp
gtk-doc.make
libtool
ltmain.sh
Makefile
Makefile.in
omf.make
stamp-h1
xmldocs.make

# Build Output #
################
*.o
*.Po
*.Plo
*.la
*.lo
*.gmo
*.pc

# Libtoolize output #
.libs/
.deps/

# Libraries
*.lib
*.a
# Specifically generated files #
colorschemes/
compile
configure.ac
doc/xfce4-alsamixer.1
INSTALL
install-sh
intltool-extract.in
intltool-merge.in
intltool-update.in
m4/
missing
po/.intltool-merge-cache*
po/Makefile.in.in
po/POTFILES
po/stamp-it
alsamixer/xfce4-alsamixer
xfce4-alsamixer.desktop

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib
# Catchall stuff #
*~

# Executables
*.exe
*.out
*.app
21 changes: 0 additions & 21 deletions Makefile

This file was deleted.

46 changes: 46 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

SUBDIRS = \
doc \
icons \
po \
alsamixer

distclean-local:
rm -rf *.cache *~

distuninstallcheck_listfiles = \
find . -type f -print | grep -v ./share/icons/hicolor/icon-theme.cache

.PHONY: ChangeLog

ChangeLog: Makefile
(GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp \
&& mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) \
|| (touch ChangeLog; echo 'Git directory not found: installing possibly empty changelog.' >&2)

dist-hook: ChangeLog

desktopdir = $(datadir)/applications
desktop_in_files = xfce4-alsamixer.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

EXTRA_DIST = \
HACKING \
README.md \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
$(desktop_in_files) \
$(xml_in_in_files)

DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update \
$(desktop_DATA) \
$(xml_in_files) \
$(xml_DATA)

# vi:set ts=8 sw=8 noet ai nocindent:
73 changes: 73 additions & 0 deletions alsamixer/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
AM_CPPFLAGS = \
-I$(top_srcdir) \
-DDATADIR=\"$(datadir)\" \
-DHELPDIR=\"$(docdir)\" \
-DG_LOG_DOMAIN=\"xfce4-alsamixer\" \
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
$(PLATFORM_CPPFLAGS)

bin_PROGRAMS = \
xfce4-alsamixer

xfce4_alsamixer_headers = \
gam-app.h \
gam-mixer.h \
gam-slider.h \
gam-toggle.h \
game-prefs-dlg.h \
gam-props-dlg.h \
gam-slider-pan.h \
gam-slider-dual.h

xfce4_alsamixer_SOURCES = \
$(xfce4_alsamixer_headers) \
gam-main.c \
gam-app.c \
gam-mixer.c \
gam-slider.c \
gam-toggle.c \
gam-slider-pan.c \
gam-slider-dual.c

xfce4_alsamixer_CFLAGS = \
$(GTK_CFLAGS) \
$(LIBX11_CFLAGS) \
$(LIBXFCE4UI_CFLAGS) \
$(ALSA_CFLAGS) \
$(PLATFORM_CFLAGS)

xfce4_alsamixer_LDFLAGS = \
-no-undefined \
$(LIBX11_LDFLAGS) \
$(PLATFORM_LDFLAGS)

xfce4_alsamixer_LDADD = \
$(GTK_LIBS) \
$(LIBX11_LIBS) \
$(LIBXFCE4UI_LIBS) \
$(ALSA_LIBS) \
$(ALSAMIXER_LIBS)

##
## Rules to auto-generate built sources
##
## This is a bit tricky with automake, and non-trivial to implement. The
## rules below seem to work fine and don't seem to break the build, but
## they are only enabled in maintainer mode, so arbitrary users don't get
## trapped in automake's oddities. Therefore we ship the autogenerated
## files as part of the dist tarball.
##
if MAINTAINER_MODE
CLEANFILES = \
xgen-tetc \
xgen-teth \
xgen-tmc \
xgen-tmh


clean-local:
rm -f *.core core core.*

endif

# vi:set ts=8 sw=8 noet ai nocindent:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh
#
# Copyright (c) 2002-2009
# The Xfce development team. All rights reserved.
#
# Written for Xfce by Benedikt Meurer <[email protected]>
# and Brian Tarricone <[email protected]>.
#

(type xdt-autogen) >/dev/null 2>&1 || {
cat >&2 <<EOF
autogen.sh: You don't seem to have the Xfce development tools (at least
version $XDT_REQURED_VERSION) installed on your system, which
are required to build this software.
Please install the xfce4-dev-tools package first; it is available
from https://www.xfce.org/.
EOF
exit 1
}

XDT_AUTOGEN_REQUIRED_VERSION="4.7.2" exec xdt-autogen "$@"

# vi:set ts=2 sw=2 et ai:
Loading

0 comments on commit 727762a

Please sign in to comment.