mirror of https://github.com/XEphem/XEphem.git
files for autoconf added
This commit is contained in:
parent
8fb84dc758
commit
4c36834fac
|
|
@ -0,0 +1,113 @@
|
|||
# $Header$
|
||||
|
||||
# AUTOMAKE_OTPIONS =
|
||||
# ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
|
||||
|
||||
bin_PROGRAMS = xephem
|
||||
|
||||
xephem_SOURCES = \
|
||||
aavso.c \
|
||||
annotmenu.c \
|
||||
broadcast.c \
|
||||
calmenu.c \
|
||||
closemenu.c \
|
||||
compiler.c \
|
||||
coordsmenu.c \
|
||||
datamenu.c \
|
||||
db.h db.c \
|
||||
dbmenu.c \
|
||||
dm.h \
|
||||
earthmap.c \
|
||||
earthmenu.c \
|
||||
fallbacks.c \
|
||||
favmenu.c \
|
||||
formats.c \
|
||||
fsmenu.c \
|
||||
gallerymenu.c \
|
||||
glance.c \
|
||||
gsc.c \
|
||||
gscnet.c \
|
||||
helpmenu.c \
|
||||
homeio.c \
|
||||
hznmenu.c \
|
||||
indiapi.h indimenu.c \
|
||||
imregmenu.c \
|
||||
jpeg2pm.c \
|
||||
jupmenu.c \
|
||||
listmenu.c \
|
||||
mainmenu.c \
|
||||
map.h \
|
||||
marsmenu.c \
|
||||
marsmmenu.c \
|
||||
moonmenu.c \
|
||||
moviemenu.c \
|
||||
msgmenu.c \
|
||||
net.h \
|
||||
netmenu.c \
|
||||
objmenu.c \
|
||||
obslog.c \
|
||||
patchlevel.h patchlevel.c \
|
||||
plot.h plot_aux.c \
|
||||
plotmenu.c \
|
||||
preferences.c \
|
||||
progress.c \
|
||||
ps.h ps.c \
|
||||
query.c \
|
||||
rotated.h rotated.c \
|
||||
satmenu.c \
|
||||
saveres.c \
|
||||
scope.c \
|
||||
sites.h sites.c \
|
||||
skybinary.c \
|
||||
skyeyep.h skyeyep.c \
|
||||
skyfifos.c \
|
||||
skyfiltmenu.c \
|
||||
skyfits.c \
|
||||
skyhist.h skyhist.c \
|
||||
skyip.h skyip.c \
|
||||
skylist.h skylist.c \
|
||||
skytoolbar.h skytoolbar.c \
|
||||
skyviewmenu.c \
|
||||
solsysmenu.c \
|
||||
splash.c \
|
||||
srchmenu.c \
|
||||
sunmenu.c \
|
||||
time.c \
|
||||
tips.c \
|
||||
trails.h trailmenu.c \
|
||||
tools/lx200xed/liblx200.h \
|
||||
uranusmenu.c \
|
||||
ucac.c \
|
||||
usno.c \
|
||||
versionmenu.c \
|
||||
webdbmenu.c \
|
||||
xe2.c \
|
||||
xe3.c \
|
||||
xephem.h xephem.c \
|
||||
xmisc.c
|
||||
|
||||
|
||||
xephem_CFLAGS = -D_GNU_SOURCE -I. -I../../libastro -I../../libip -I../../liblilxml -I/usr/include/libpng16
|
||||
xephem_CPPFLAGS = -D_GNU_SOURCE -I. -I../../libastro -I../../libip -I../../liblilxml -I/usr/include/libpng16
|
||||
xephem_LDFLAGS = -L../../libastro -L../../libip -L../../liblilxml
|
||||
xephem_LDADD = -lastro -lip -llilxml
|
||||
|
||||
# AM_CFLAGS = -I. -Iinclude
|
||||
|
||||
# AM_LIBTOOLFLAGS=--silent
|
||||
|
||||
dist_man_MANS = xephem.1
|
||||
|
||||
# Skipping the tools/xephemdb tools/xedb tools/simpleIndi which will lead to install problems with debuild
|
||||
nobase_dist_pkgdata_DATA = xephem.man $(wildcard auxil/*) $(wildcard gallery/*) \
|
||||
$(wildcard fits/*) $(wildcard help/*.html) $(wildcard help/png/*) $(wildcard lo/*) \
|
||||
$(wildcard tools/*.pl) $(wildcard tools/*.awk) $(wildcard tools/*.c) $(wildcard tools/lx200xed/*) \
|
||||
$(wildcard catalogs/*) $(wildcard fifos/[MR]*)
|
||||
|
||||
BUILT_SOURCES = xephem.1
|
||||
|
||||
# DIST_SUBDIRS = auxil fifos gallery fits help lo tools catalogs
|
||||
SUBDIRS = fifos
|
||||
|
||||
xephem.1: xephem.man
|
||||
nroff -man $? > $@
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# Make the fifos used by xephem, assuming the default configuration.
|
||||
#
|
||||
# on non-POSIX systems, you make fifos using mknod as follows:
|
||||
# mknod <file> p
|
||||
|
||||
# Debian/Ubuntu has a policy not to allow creation of special files in makefiles,
|
||||
# so we simply don't support them on Debian/Ubuntu (condiditional on DEBIAN)
|
||||
|
||||
# Another problem: some RPM builder (Fedora?) call make instal twice, once in BUILDROOT and
|
||||
# a second time in BUILD, so the second time the mkfifo will fail because the
|
||||
# fifos are already there. Workaround is a conditional mkfifo.
|
||||
if !DEBIAN
|
||||
install-data-local:
|
||||
$(MKDIR_P) -m 755 $(DESTDIR)/${datarootdir}/xephem/fifos
|
||||
cd $(DESTDIR)/${datarootdir}/xephem/fifos && if [ ! -e xephem_loc_fifo ] ; then mkfifo -m 0644 xephem_loc_fifo xephem_db_fifo xephem_in_fifo xephem_out_fifo ; fi
|
||||
|
||||
uninstall-local:
|
||||
rm -rf $(DESTDIR)/${datarootdir}/xephem/fifos
|
||||
endif
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# $Header$
|
||||
|
||||
# AUTOMAKE_OTPIONS =
|
||||
# ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
|
||||
|
||||
SUBDIRS = libastro libip liblilxml GUI/xephem
|
||||
|
||||
# make perl files executable
|
||||
all-local:
|
||||
find . \( -name "*.pl" -o -name "*.awk" \) -exec chmod +x {} \;
|
||||
|
||||
if DEBIAN
|
||||
install-data-local:
|
||||
$(MKDIR_P) -m 755 $(DESTDIR)/etc/X11/app-defaults
|
||||
echo "XEphem.ShareDir: ${datarootdir}/$(PACKAGE_NAME)" > $(DESTDIR)/etc/X11/app-defaults/XEphem
|
||||
else
|
||||
install-data-local:
|
||||
$(MKDIR_P) -m 755 $(DESTDIR)/${datarootdir}/X11/app-defaults
|
||||
echo "XEphem.ShareDir: ${datarootdir}/$(PACKAGE_NAME)" > $(DESTDIR)/${datarootdir}/X11/app-defaults/XEphem
|
||||
endif
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.68])
|
||||
AC_INIT([xephem], [4.1.0], [mathar@mpia.de])
|
||||
AC_CONFIG_SRCDIR([GUI])
|
||||
# AC_CONFIG_MACRO_DIR([m4])
|
||||
AM_INIT_AUTOMAKE([foreign])
|
||||
# AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
LT_INIT([disable-shared])
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
|
||||
|
||||
# warning: order in the following libraries list may matter!
|
||||
AC_CHECK_LIB([xml2], [xmlMalloc])
|
||||
AC_CHECK_LIB([X11], [XFillArc])
|
||||
AC_CHECK_LIB([Xmu], [XmuAreaCopy])
|
||||
AC_CHECK_LIB([Xext], [XextFindDisplay])
|
||||
AC_CHECK_LIB([Xt], [XtDisplay])
|
||||
AC_CHECK_LIB([Xm], [XmCreateText])
|
||||
AC_CHECK_LIB([z], [adler32])
|
||||
AC_CHECK_LIB([ssl], [SSL_read])
|
||||
AC_CHECK_LIB([jpeg], [jpeg_huff_decode])
|
||||
AC_CHECK_LIB([png16], [png_read_png])
|
||||
AC_CHECK_LIB([png], [png_read_png])
|
||||
AC_CHECK_LIB([m], [cos])
|
||||
# the following apparently needed on older HP-UX, perhaps -lxnet too?
|
||||
AC_CHECK_LIB([crypt], [crypt])
|
||||
AC_CHECK_LIB([crypto], [RSA_sign])
|
||||
# the following apparently not needed on must systems but perhaps on MACs?
|
||||
AC_CHECK_LIB([SM], [SmcOpenConnection])
|
||||
AC_CHECK_LIB([ICE], [IceOpenConnection])
|
||||
AC_CHECK_LIB([xcb], [xcb_free_pixmap])
|
||||
AC_CHECK_LIB([Xau], [XauReadAuth])
|
||||
AC_CHECK_LIB([Xdmcp], [XdmcpFill])
|
||||
|
||||
# AC_CHECK_HEADERS([png.h X11/X.h Xm/Xm.h])
|
||||
|
||||
# we need a way to prevent fifos being installed by automake on Debian/Ubuntu
|
||||
# and to create the app-defaults in a different place of the file system on Debian/Ubuntu
|
||||
DEBIAN=m4_esyscmd_s(uname -v |fgrep Ubuntu |wc -l)
|
||||
AM_CONDITIONAL([DEBIAN], [test x$DEBIAN = x1])
|
||||
|
||||
# AC_SUBST([DEBIAN])
|
||||
|
||||
AC_CONFIG_FILES([ Makefile libastro/Makefile libip/Makefile liblilxml/Makefile GUI/xephem/Makefile GUI/xephem/fifos/Makefile ])
|
||||
AC_OUTPUT
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
# $Header$
|
||||
|
||||
# lib_LTLIBRARIES = libastro.la
|
||||
noinst_LTLIBRARIES = libastro.la
|
||||
|
||||
libastro_la_SOURCES = \
|
||||
aa_hadec.c \
|
||||
aberration.c \
|
||||
actan.c \
|
||||
airmass.c \
|
||||
anomaly.c \
|
||||
ap_as.c \
|
||||
astro.h \
|
||||
atlas.c \
|
||||
auxil.c \
|
||||
bdl.c bdl.h \
|
||||
chap95.c chap95.h \
|
||||
chap95_data.c \
|
||||
circum.c \
|
||||
comet.c \
|
||||
constel.c \
|
||||
dbfmt.c \
|
||||
deep.c deepconst.h \
|
||||
deltat.c \
|
||||
earthsat.c \
|
||||
eq_ecl.c \
|
||||
eq_gal.c \
|
||||
formats.c \
|
||||
helio.c \
|
||||
jupmoon.c \
|
||||
libration.c \
|
||||
magdecl.c \
|
||||
marsmoon.c \
|
||||
misc.c \
|
||||
mjd.c \
|
||||
moon.c \
|
||||
mooncolong.c \
|
||||
moonnf.c \
|
||||
nutation.c \
|
||||
obliq.c \
|
||||
parallax.c \
|
||||
parallactic.c \
|
||||
plans.c \
|
||||
plmoon.c \
|
||||
plshadow.c \
|
||||
preferences.h \
|
||||
precess.c \
|
||||
reduce.c \
|
||||
refract.c \
|
||||
rings.c \
|
||||
riset.c \
|
||||
riset_cir.c \
|
||||
satspec.h sattypes.h satlib.h \
|
||||
satmoon.c \
|
||||
sdp4.c \
|
||||
sgp4.c \
|
||||
sphcart.c \
|
||||
sun.c \
|
||||
thetag.c \
|
||||
utc_gst.c \
|
||||
umoon.c \
|
||||
twobody.c \
|
||||
vector.h \
|
||||
vsop87.c vsop87.h \
|
||||
vsop87_data.c
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
# $Header$
|
||||
|
||||
# lib_LTLIBRARIES = libip.la
|
||||
noinst_LTLIBRARIES = libip.la
|
||||
|
||||
libip_la_SOURCES = \
|
||||
explodegif.c \
|
||||
fits.c \
|
||||
fsmatch.h fsmatch.c \
|
||||
gaussfit.c \
|
||||
ip.h \
|
||||
lstsqr.c \
|
||||
median.c \
|
||||
sqr.c \
|
||||
stars.c \
|
||||
stats.c \
|
||||
walk.c \
|
||||
wcs.c
|
||||
|
||||
libip_la_CFLAGS = -I../libastro
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# $Header$
|
||||
|
||||
# lib_LTLIBRARIES = liblilxml.la
|
||||
noinst_LTLIBRARIES = liblilxml.la
|
||||
|
||||
liblilxml_la_SOURCES = \
|
||||
lilxml.c lilxml.h \
|
||||
base64.c base64.h
|
||||
Loading…
Reference in New Issue