summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/mgls/Makefile92
-rw-r--r--graphics/mgls/files/md53
-rw-r--r--graphics/mgls/files/patch-sum10
-rw-r--r--graphics/mgls/mail3
-rw-r--r--graphics/mgls/patches/patch-aa72
-rw-r--r--graphics/mgls/patches/patch-ab65
-rw-r--r--graphics/mgls/patches/patch-ac56
-rw-r--r--graphics/mgls/patches/patch-ad17
-rw-r--r--graphics/mgls/patches/patch-ae22
-rw-r--r--graphics/mgls/patches/patch-af13
-rw-r--r--graphics/mgls/patches/patch-ag10
-rw-r--r--graphics/mgls/patches/patch-ah10
-rw-r--r--graphics/mgls/pkg/COMMENT1
-rw-r--r--graphics/mgls/pkg/DESCR2
-rw-r--r--graphics/mgls/pkg/PLIST71
15 files changed, 447 insertions, 0 deletions
diff --git a/graphics/mgls/Makefile b/graphics/mgls/Makefile
new file mode 100644
index 00000000000..13e6be7cdbb
--- /dev/null
+++ b/graphics/mgls/Makefile
@@ -0,0 +1,92 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+
+DISTNAME= mgl2-alpha-019
+PKGNAME= mgl-0.1.9a
+CATEGORIES= graphics
+MASTER_SITES= http://at.sakura.ne.jp/~suz/arc/
+
+MAINTAINER= fk200329@fsinet.or.jp
+HOMEPAGE= http://www.netbsd.org/Ports/hpcmips/mgl2.html
+
+DEPENDS= jpeg>=6b:../../graphics/jpeg \
+ png>=1.0.3:../../graphics/png \
+ libungif>=4.1.0:../../graphics/libungif \
+ mglfonts>=0.1:../../fonts/mglfonts
+
+USE_GMAKE= yes
+
+MGLDOCS= im.doc mgl1.doc shlib.doc
+MGL2DOCS= AppConvert.doc Build.doc CALIBRATE.doc CHANGES.doc \
+ Contributors Dirs.doc HowtoUse.doc MGLAPI.doc WhatisMGL2.doc
+MGL2MEMOS= README-1st.doc TODO.txt bench.txt draw_engine.doc emsvr.doc \
+ emsvrs.doc emsvrx.doc env.doc event_man.doc keymap.doc \
+ files.doc mgl1.doc mgl2.doc mglbench.doc mglcol.doc \
+ raw_keyboard.doc screen.doc share_fb.doc size.doc \
+ structure.doc taskbar.doc
+BINDOCS= README.doc imsoft.doc
+MGTERMDOCS= bugs.doc mgterm.doc
+MILDOCS= mil.doc
+MGLFONTUTILS= mgl_fontcreate.c
+MGLUTILS= kill_mgl.sh mglcons.sh set_mgl.sh
+
+ONLY_FOR_PLATFORM= *-*-i386 *-*-mipsel
+
+.include "../../mk/bsd.prefs.mk"
+
+pre-build:
+.if ${MACHINE_ARCH} == "mipsel"
+ @${MV} -f ${WRKSRC}/conf/config.mk-hpcmips ${WRKSRC}/conf/config.mk.tmp
+.else
+ @${MV} -f ${WRKSRC}/conf/config.mk-netbsd-i386-x ${WRKSRC}/conf/config.mk.tmp
+.endif
+.if ${OBJECT_FMT} == "a.out"
+ @${SED} -e "s/ELFENV=1/ELFENV=0/" ${WRKSRC}/conf/NetBSD.mk > ${WRKSRC}/conf/NetBSD.mk.tmp
+ @${MV} -f ${WRKSRC}/conf/NetBSD.mk.tmp ${WRKSRC}/conf/NetBSD.mk
+ @${SED} \
+ -e "s@-Wl,-rpath,${PREFIX}/lib@@" \
+ ${WRKSRC}/conf/config.mk.tmp > ${WRKSRC}/conf/config.mk
+.else
+ @${MV} -f ${WRKSRC}/conf/config.mk.tmp ${WRKSRC}/conf/config.mk
+.endif
+
+post-install:
+.for i in ${MGLUTILS}
+ @${INSTALL_SCRIPT} ${WRKSRC}/utils/${i} ${PREFIX}/bin/
+ ${CHMOD} +x ${PREFIX}/bin/${i}
+.endfor
+ ${LN} -s mglcons.sh ${PREFIX}/bin/start_mgl.sh
+
+ @if ${TEST} -e ${PREFIX}/bin/mglsvrcons; \
+ then ${MV} -f ${PREFIX}/bin/mglsvrcons ${PREFIX}/sbin/; \
+ fi
+ @${MKDIR} ${PREFIX}/share/mgl2
+.for i in ${MGLFONTUTILS}
+ @${INSTALL_DATA} ${WRKSRC}/bin/${i} ${PREFIX}/share/mgl2
+.endfor
+ @${RM} -f -r ${PREFIX}/share/doc/mgl2
+ @${MKDIR} ${PREFIX}/share/doc/mgl2
+ @${MKDIR} ${PREFIX}/share/doc/mgl2/memo
+ @${MKDIR} ${PREFIX}/share/doc/mgl2/mgterm
+ @${MKDIR} ${PREFIX}/share/doc/mgl2/mil
+ @${MKDIR} ${PREFIX}/share/doc/mgl2/bin
+ @${MKDIR} ${PREFIX}/share/doc/mgl2/doc
+.for i in ${MGLDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/mgl2/doc/
+.endfor
+.for i in ${MGL2DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/mgl2/
+.endfor
+.for i in ${MGL2MEMOS}
+ @${INSTALL_DATA} ${WRKSRC}/memo/${i} ${PREFIX}/share/doc/mgl2/memo/
+.endfor
+.for i in ${BINDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/bin/${i} ${PREFIX}/share/doc/mgl2/bin/
+.endfor
+.for i in ${MGTERMDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/mgterm/${i} ${PREFIX}/share/doc/mgl2/mgterm/
+.endfor
+.for i in ${MILDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/mil/${i} ${PREFIX}/share/doc/mgl2/mil/
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/mgls/files/md5 b/graphics/mgls/files/md5
new file mode 100644
index 00000000000..eaf3e2e61f7
--- /dev/null
+++ b/graphics/mgls/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+
+MD5 (mgl2-alpha-019.tar.gz) = 349c75f751db1c141ea7ce00b13df950
diff --git a/graphics/mgls/files/patch-sum b/graphics/mgls/files/patch-sum
new file mode 100644
index 00000000000..2521b066209
--- /dev/null
+++ b/graphics/mgls/files/patch-sum
@@ -0,0 +1,10 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+
+MD5 (patch-aa) = f3a2cde5f6f52ec3b3cc60c72c6d7b3c
+MD5 (patch-ab) = 1d739194ec89cc45f159c32bb3564c29
+MD5 (patch-ac) = f0cc3aa6ab2f695e494462b13087c225
+MD5 (patch-ad) = a9d33a12eee4fb1f63ed9d27adf918fc
+MD5 (patch-ae) = 4fcd0efe9e621b4d40bf1855ba58452c
+MD5 (patch-af) = 3ecec22e87bc414bf469c4b827b98437
+MD5 (patch-ag) = 3c2eb8da5eeca9f499ec011320d720c8
+MD5 (patch-ah) = 45ca383512ad3b919937d60d3fc49ac4
diff --git a/graphics/mgls/mail b/graphics/mgls/mail
new file mode 100644
index 00000000000..187e2750974
--- /dev/null
+++ b/graphics/mgls/mail
@@ -0,0 +1,3 @@
+ * mglx.sh wants mglsvrx, which isn't there
+ * sbin/calibconf is an empty file (plus not executable)
+ * dito for calibdata-update and mglcalibrate
diff --git a/graphics/mgls/patches/patch-aa b/graphics/mgls/patches/patch-aa
new file mode 100644
index 00000000000..2bc36c6e9b1
--- /dev/null
+++ b/graphics/mgls/patches/patch-aa
@@ -0,0 +1,72 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+
+--- conf/NetBSD.mk.orig Thu Aug 31 14:06:52 2000
++++ conf/NetBSD.mk
+@@ -1,33 +1,35 @@
+ INSTALL=install
+ MAKEDEPEND=sh ../conf/mkdep.sh
+-INCS_X11= -I/usr/X11R6/include
++INCS_X11= -I${X11BASE}/include
+
+ # set ELFENV in config.mk
+ # a.out env. -> 0
+ # ELF env. -> 1
+-ifndef ELFENV
++#HF#
++#HF# Force -Wl,-rpath even on a.out
++#HF#ifndef ELFENV
+ ELFENV=1
+-endif
++#HF#endif
+
+ ifeq (${ELFENV},1)
+-LIBS_X11= -L/usr/X11R6/lib -Wl,-rpath,/usr/X11R6/lib -lX11
++LIBS_X11= -L${X11BASE}/lib -Wl,-rpath,${X11BASE}/lib -lX11
+ else
+-LIBS_X11= -L/usr/X11R6/lib -lX11
++LIBS_X11= -L${X11BASE}/lib -lX11
+ endif
+
+-INCS_CONS= -I/usr/pkg/include
++INCS_CONS= -I${PREFIX}/include
+ ifeq (${ELFENV},1)
+- LIBS_CONS= -L/usr/pkg/lib -Wl,-rpath /usr/pkg/lib
++ LIBS_CONS= -L${PREFIX}/lib -Wl,-rpath ${PREFIX}/lib
+ else
+- LIBS_CONS= -L/usr/pkg/lib
++ LIBS_CONS= -L${PREFIX}/lib
+ endif
+
+ ifndef LIBS_IM
+-INCS_IM = -I/usr/pkg/include
++INCS_IM = -I${PREFIX}/include
+ ifeq (${ELFENV},1)
+- LIBS_IM = -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lcanna
++ LIBS_IM = -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib -lcanna
+ else
+- LIBS_IM = -L/usr/pkg/lib -lcanna
++ LIBS_IM = -L${PREFIX}/lib -lcanna
+ endif
+ endif
+
+@@ -63,16 +65,16 @@
+ ifdef MGL_INSTALLED
+ INCS_MGL = -I${MGL_HEADER_DIR}
+ ifeq (${ELFENV},1)
+- LIBS_MGL = -L${MGL_LIB_DIR} -L/usr/X11R6/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2
++ LIBS_MGL = -L${MGL_LIB_DIR} -L${X11BASE}/lib -Wl,-rpath,${X11BASE}/lib -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib -lmgl2
+ else
+- LIBS_MGL = -L${MGL_LIB_DIR} -L/usr/X11R6/lib -L/usr/pkg/lib -lmgl2
++ LIBS_MGL = -L${MGL_LIB_DIR} -L${X11BASE}/lib -L${PREFIX}/lib -lmgl2
+ endif
+ else
+ INCS_MGL = -I${SRCDIR}
+ ifeq (${ELFENV},1)
+- LIBS_MGL = -L${SRCDIR} -rdynamic -L/usr/X11R6/lib -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -lmgl2
++ LIBS_MGL = -L${SRCDIR} -rdynamic -L${X11BASE}/lib -Wl,-rpath,${X11BASE}/lib -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib -lmgl2
+ else
+- LIBS_MGL = -L${SRCDIR} -L/usr/X11R6/lib -L/usr/pkg/lib -lmgl2
++ LIBS_MGL = -L${SRCDIR} -L${X11BASE}/lib -L${PREFIX}/lib -lmgl2
+ endif
+ endif
+
diff --git a/graphics/mgls/patches/patch-ab b/graphics/mgls/patches/patch-ab
new file mode 100644
index 00000000000..ce52679a387
--- /dev/null
+++ b/graphics/mgls/patches/patch-ab
@@ -0,0 +1,65 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+
+--- conf/config.mk-netbsd-i386-x.orig Thu Aug 31 21:06:52 2000
++++ conf/config.mk-netbsd-i386-x Sun Sep 24 06:15:44 2000
+@@ -1,15 +1,15 @@
+ # MGLDIR : mgl direcory (headers,libs,shared objects,fonts ..)
+-MGLDIR=/usr/local/lib/mgl2
++MGLDIR=${PREFIX}/lib/mgl2
+
+ # MGL_SBIN_DIR mgl server directory
+-MGL_SBIN_DIR=/usr/local/sbin
+-MGL_BIN_DIR=/usr/local/bin
++MGL_SBIN_DIR=${PREFIX}/sbin
++MGL_BIN_DIR=${PREFIX}/bin
+
+ # set MGL_HEADER_DIR to specify header direcotry
+-MGL_HEADER_DIR=/usr/local/include
++MGL_HEADER_DIR=${PREFIX}/include
+
+ # set MGL_LIB_DIR to specify library direcotry
+-MGL_LIB_DIR=/usr/local/lib
++MGL_LIB_DIR=${PREFIX}/lib
+
+ ifndef MGL_HEADER_DIR
+ MGL_HEADER_DIR = ${MGLDIR}
+@@ -35,7 +35,7 @@
+ SUPPORT_CLIENT=y
+
+ # server option
+-SERVER_X11 = mglsvrx
++SERVER_X11 = mglsvrcons
+ OBJS_X11=emx11.o
+ #SERVER_CONS = mglsvrcons
+ #OBJS_CONS=emcons.o
+@@ -57,22 +57,22 @@
+ # im option input-method
+ #IM_STATIC=y
+ IM_DYNAMIC=y
+-IM_PROG=imcanna.so
++#IM_PROG=imcanna.so
+
+ # mil options
+ USE_JPEG = -DUSE_JPEG
+-JPEGINCDIR = -I/usr/pkg/include
+-JPEGLIBDIR = -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib
++JPEGINCDIR = -I${PREFIX}/include
++JPEGLIBDIR = -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib
+ JPEGLIB = -ljpeg
+
+ USE_GIF = -DUSE_GIF
+-GIFINCDIR = -I/usr/pkg/include
+-GIFLIBDIR = -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib
++GIFINCDIR = -I${PREFIX}/include
++GIFLIBDIR = -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib
+ GIFLIB = -lungif
+
+-#USE_PNG = -DUSE_PNG
+-PNGINCDIR = -I/usr/pkg/include
+-PNGLIBDIR = -L/usr/pkg/lib
++USE_PNG = -DUSE_PNG
++PNGINCDIR = -I${PREFIX}/include
++PNGLIBDIR = -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib
+ PNGLIB = -lpng
+
+ OSTYPE=NetBSD
diff --git a/graphics/mgls/patches/patch-ac b/graphics/mgls/patches/patch-ac
new file mode 100644
index 00000000000..1286e142a4b
--- /dev/null
+++ b/graphics/mgls/patches/patch-ac
@@ -0,0 +1,56 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+
+--- conf/config.mk-hpcmips.orig Thu Aug 31 21:06:52 2000
++++ conf/config.mk-hpcmips Sun Sep 24 06:16:34 2000
+@@ -1,15 +1,15 @@
+ # MGLDIR : mgl direcory (headers,libs,shared objects,fonts ..)
+-MGLDIR=/usr/pkg/lib/mgl2
++MGLDIR=${PREFIX}/lib/mgl2
+
+ # MGL_SBIN_DIR mgl server directory
+-MGL_SBIN_DIR=/usr/pkg/sbin
+-MGL_BIN_DIR=/usr/pkg/bin
++MGL_SBIN_DIR=${PREFIX}/sbin
++MGL_BIN_DIR=${PREFIX}/bin
+
+ # set MGL_HEADER_DIR to specify header direcotry
+-MGL_HEADER_DIR=/usr/pkg/include
++MGL_HEADER_DIR=${PREFIX}/include
+
+ # set MGL_LIB_DIR to specify library direcotry
+-MGL_LIB_DIR=/usr/pkg/lib
++MGL_LIB_DIR=${PREFIX}/lib
+
+ ifndef MGL_HEADER_DIR
+ MGL_HEADER_DIR = ${MGLDIR}
+@@ -64,22 +64,22 @@
+ # im option input-method
+ #IM_STATIC=y
+ IM_DYNAMIC=y
+-IM_PROG=imcanna.so
++#IM_PROG=imcanna.so
+
+ # mil options
+ USE_JPEG = -DUSE_JPEG
+-JPEGINCDIR = -I/usr/pkg/include
+-JPEGLIBDIR = -L/usr/pkg/lib
++JPEGINCDIR = -I${PREFIX}/include
++JPEGLIBDIR = -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib
+ JPEGLIB = -ljpeg
+
+ USE_GIF = -DUSE_GIF
+-GIFINCDIR = -I/usr/pkg/include
+-GIFLIBDIR = -L/usr/pkg/lib
++GIFINCDIR = -I${PREFIX}/include
++GIFLIBDIR = -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib
+ GIFLIB = -lungif
+
+-#USE_PNG = -DUSE_PNG
+-PNGINCDIR = -I/usr/pkg/include
+-PNGLIBDIR = -L/usr/pkg/lib
++USE_PNG = -DUSE_PNG
++PNGINCDIR = -I${PREFIX}/include
++PNGLIBDIR = -L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib
+ PNGLIB = -lpng
+
+ OSTYPE=NetBSD
diff --git a/graphics/mgls/patches/patch-ad b/graphics/mgls/patches/patch-ad
new file mode 100644
index 00000000000..f2c85b7b8e4
--- /dev/null
+++ b/graphics/mgls/patches/patch-ad
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+
+--- mgterm/mgterm.c.orig Mon Mar 6 17:11:11 2000
++++ mgterm/mgterm.c Wed Jul 19 03:13:05 2000
+@@ -250,6 +250,12 @@
+ if (!load_font("k12x10.fnt",12,10)) {
+ font_size = 12;
+ }
++ } else if (font_size == 9) {
++ if (!load_font("k10x10.fnt",10,10)) {
++ font_size = 12;
++ } else {
++ font_size = 10;
++ }
+ } else if (font_size == 8) {
+ if (!load_font("k10x8.fnt",10,8)) {
+ font_size = 12;
diff --git a/graphics/mgls/patches/patch-ae b/graphics/mgls/patches/patch-ae
new file mode 100644
index 00000000000..d21699053ef
--- /dev/null
+++ b/graphics/mgls/patches/patch-ae
@@ -0,0 +1,22 @@
+$NetBSD: patch-ae,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+
+--- bin/Makefile.orig Fri Sep 1 15:04:11 2000
++++ bin/Makefile Fri Sep 1 15:22:18 2000
+@@ -58,12 +58,12 @@
+ ifdef SERVER_X11
+ $(INSTALL) -c -s ${PRIV_BIN} ${SERVER_X11} ${MGL_BIN_DIR}
+ endif
+-ifdef IM_DYNAMIC
+- ${INSTALL} -c -s ${PRIV_BIN} ${IM_PROG} ${MGLDIR}
+-endif
++#ifdef IM_DYNAMIC
++# ${INSTALL} -c -s ${PRIV_BIN} ${IM_PROG} ${MGLDIR}
++#endif
+ ${INSTALL} -c -s ${PRIV_BIN} imsoft.so ${MGLDIR}
+- ${INSTALL} -c -s ${PRIV_BIN} mgl_fontinfo ${MGL_BIN_DIR}
+- ${INSTALL} -c -s ${PRIV_BIN} bdftomgl ${MGL_BIN_DIR}
++# ${INSTALL} -c -s ${PRIV_BIN} mgl_fontinfo ${MGL_BIN_DIR}
++# ${INSTALL} -c -s ${PRIV_BIN} bdftomgl ${MGL_BIN_DIR}
+ ifdef CALIB_PROGS
+ ${INSTALL} -c -s ${PRIV_BIN} ${CALIB_PROGS} ${MGL_SBIN_DIR}
+ ${INSTALL} -c ${PRIV_BIN} calibdata-update ${MGL_SBIN_DIR}
diff --git a/graphics/mgls/patches/patch-af b/graphics/mgls/patches/patch-af
new file mode 100644
index 00000000000..854666f55b9
--- /dev/null
+++ b/graphics/mgls/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+
+--- utils/mglcons.sh.orig Fri Mar 3 01:07:43 2000
++++ utils/mglcons.sh Wed Jul 19 14:17:09 2000
+@@ -6,7 +6,7 @@
+ export MGL_DISPLAY
+ # export PLATFORM=MC-R300
+
+-/usr/pkg/sbin/mglsvrcons $1 < $TTY > $TTY &
++/usr/pkg/sbin/mglsvrcons $* < $TTY > $TTY &
+ sleep 1
+ mgterm -i
+
diff --git a/graphics/mgls/patches/patch-ag b/graphics/mgls/patches/patch-ag
new file mode 100644
index 00000000000..27cc6691b3e
--- /dev/null
+++ b/graphics/mgls/patches/patch-ag
@@ -0,0 +1,10 @@
+$NetBSD: patch-ag,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+
+--- utils/kill_mgl.sh.orig Thu Aug 31 21:06:51 2000
++++ utils/kill_mgl.sh Wed Nov 1 14:44:50 2000
+@@ -1,4 +1,4 @@
+-PID=`ps ax |grep mglsvr |grep -v grep |awk '{print $1}'`
++PID=`ps ax |grep mglsvrcons |grep -v grep |awk '{print $1}'`
+
+ kill -HUP $PID
+
diff --git a/graphics/mgls/patches/patch-ah b/graphics/mgls/patches/patch-ah
new file mode 100644
index 00000000000..914764894ca
--- /dev/null
+++ b/graphics/mgls/patches/patch-ah
@@ -0,0 +1,10 @@
+$NetBSD: patch-ah,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+
+--- utils/set_mgl.sh.orig Thu Aug 31 21:06:51 2000
++++ utils/set_mgl.sh Wed Nov 1 14:51:53 2000
+@@ -1,4 +1,4 @@
+-MGL_DISPLAY=`ps ax |grep emsvr |grep -v grep |awk '{print "tty" $2}'`
++MGL_DISPLAY=`ps ax |grep mglsvrcons |grep -v grep |awk '{print "tty" $2}'`
+
+ echo "MGL_DISPLAY="$MGL_DISPLAY
+
diff --git a/graphics/mgls/pkg/COMMENT b/graphics/mgls/pkg/COMMENT
new file mode 100644
index 00000000000..95e5649b12b
--- /dev/null
+++ b/graphics/mgls/pkg/COMMENT
@@ -0,0 +1 @@
+Graphics library for NEC Mobilegear/PocketBSD,NetBSD/hpcmips
diff --git a/graphics/mgls/pkg/DESCR b/graphics/mgls/pkg/DESCR
new file mode 100644
index 00000000000..04ab7c3cf0b
--- /dev/null
+++ b/graphics/mgls/pkg/DESCR
@@ -0,0 +1,2 @@
+MGL2 - Mobilegear Graphic Library Version 2 is the Graphic Library
+and Window Manager toolkit for tiny machine.
diff --git a/graphics/mgls/pkg/PLIST b/graphics/mgls/pkg/PLIST
new file mode 100644
index 00000000000..84bdd19964c
--- /dev/null
+++ b/graphics/mgls/pkg/PLIST
@@ -0,0 +1,71 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/11/01 16:22:39 hubertf Exp $
+bin/kill_mgl.sh
+bin/mcalc
+bin/mdate
+bin/mglcons.sh
+bin/mgterm
+bin/mil
+bin/mini_mil
+bin/msame
+bin/set_mgl.sh
+bin/start_mgl.sh
+include/mgl2.h
+include/mglcol.h
+lib/libmgl2.so.2.0
+lib/mgl2/imsoft.so
+lib/mgl2/instcap.sh
+lib/mgl2/mcalc.so
+lib/mgl2/mgterm.cap
+lib/mgl2/mini_mil.so
+lib/mgl2/msame.so
+@comment sbin/calibconf
+@comment sbin/calibdata-update
+@comment sbin/mglcalibrate
+sbin/mglsvrcons
+share/doc/mgl2/AppConvert.doc
+share/doc/mgl2/Build.doc
+share/doc/mgl2/CALIBRATE.doc
+share/doc/mgl2/CHANGES.doc
+share/doc/mgl2/Contributors
+share/doc/mgl2/Dirs.doc
+share/doc/mgl2/HowtoUse.doc
+share/doc/mgl2/MGLAPI.doc
+share/doc/mgl2/WhatisMGL2.doc
+share/doc/mgl2/bin/README.doc
+share/doc/mgl2/bin/imsoft.doc
+share/doc/mgl2/doc/im.doc
+share/doc/mgl2/doc/mgl1.doc
+share/doc/mgl2/doc/shlib.doc
+share/doc/mgl2/memo/README-1st.doc
+share/doc/mgl2/memo/TODO.txt
+share/doc/mgl2/memo/bench.txt
+share/doc/mgl2/memo/draw_engine.doc
+share/doc/mgl2/memo/emsvr.doc
+share/doc/mgl2/memo/emsvrs.doc
+share/doc/mgl2/memo/emsvrx.doc
+share/doc/mgl2/memo/env.doc
+share/doc/mgl2/memo/event_man.doc
+share/doc/mgl2/memo/files.doc
+share/doc/mgl2/memo/keymap.doc
+share/doc/mgl2/memo/mgl1.doc
+share/doc/mgl2/memo/mgl2.doc
+share/doc/mgl2/memo/mglbench.doc
+share/doc/mgl2/memo/mglcol.doc
+share/doc/mgl2/memo/raw_keyboard.doc
+share/doc/mgl2/memo/screen.doc
+share/doc/mgl2/memo/share_fb.doc
+share/doc/mgl2/memo/size.doc
+share/doc/mgl2/memo/structure.doc
+share/doc/mgl2/memo/taskbar.doc
+share/doc/mgl2/mgterm/bugs.doc
+share/doc/mgl2/mgterm/mgterm.doc
+share/doc/mgl2/mil/mil.doc
+share/mgl2/mgl_fontcreate.c
+@dirrm share/mgl2
+@dirrm share/doc/mgl2/mil
+@dirrm share/doc/mgl2/mgterm
+@dirrm share/doc/mgl2/memo
+@dirrm share/doc/mgl2/doc
+@dirrm share/doc/mgl2/bin
+@dirrm share/doc/mgl2
+@comment let mglfonts do this: @dirrm lib/mgl2